Comparing version 3.10.1 to 3.10.2
@@ -630,3 +630,3 @@ /*********************************************************************** | ||
return visitor._visit(this, function() { | ||
this.argname._walk(visitor); | ||
if (this.argname) this.argname._walk(visitor); | ||
walk_body(this, visitor); | ||
@@ -633,0 +633,0 @@ }); |
@@ -155,3 +155,3 @@ /*********************************************************************** | ||
_(AST_Catch, function(self, tw) { | ||
self.argname = self.argname.transform(tw); | ||
if (self.argname) self.argname = self.argname.transform(tw); | ||
self.body = do_list(self.body, tw); | ||
@@ -158,0 +158,0 @@ }); |
@@ -7,3 +7,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "3.10.1", | ||
"version": "3.10.2", | ||
"engines": { | ||
@@ -41,2 +41,3 @@ "node": ">=0.8.0" | ||
"mocha": "^3.0.0", | ||
"mochallel": "^1.6.8", | ||
"pre-commit": "^1.2.2", | ||
@@ -46,3 +47,3 @@ "semver": "~5.5.0" | ||
"scripts": { | ||
"test": "node test/run-tests.js", | ||
"test": "rm -f dist/* && npm run prepublish && node test/run-tests.js", | ||
"coverage": "istanbul cover test/run-tests.js", | ||
@@ -52,3 +53,3 @@ "coveralls": "coveralls < coverage/lcov.info", | ||
"lint-fix": "eslint --fix lib", | ||
"prepublish": "node bin/uglifyjs lib/utils.js lib/ast.js lib/parse.js lib/transform.js lib/scope.js lib/output.js lib/compress.js lib/sourcemap.js lib/mozilla-ast.js lib/propmangle.js lib/minify.js tools/exports.js -c defaults=false -d \"MOZ_SourceMap=require('source-map')\" --source-map \"includeSources=true,url='bundle.js.map'\" -e \"exports:(typeof module != 'undefined' ? module.exports : Terser = {})\" -b ascii_only --comments /license/ -o dist/bundle.js; cp tools/exports.js dist" | ||
"prepublish": "cd dist && node ../bin/uglifyjs ../lib/utils.js ../lib/ast.js ../lib/parse.js ../lib/transform.js ../lib/scope.js ../lib/output.js ../lib/compress.js ../lib/sourcemap.js ../lib/mozilla-ast.js ../lib/propmangle.js ../lib/minify.js ../tools/exports.js -c defaults=false -d \"MOZ_SourceMap=require('source-map')\" --source-map \"includeSources=true,url='bundle.js.map'\" -e \"exports:(typeof module != 'undefined' ? module.exports : Terser = {})\" -b ascii_only --comments /license/ -o ../dist/bundle.js" | ||
}, | ||
@@ -55,0 +56,0 @@ "keywords": [ |
@@ -5,3 +5,4 @@ exports["Dictionary"] = Dictionary; | ||
exports["push_uniq"] = push_uniq; | ||
exports["OutputStream"] = OutputStream; | ||
exports["TreeTransformer"] = TreeTransformer; | ||
exports["TreeWalker"] = TreeWalker; |
@@ -30,3 +30,2 @@ var fs = require("fs"); | ||
}); | ||
code.push("exports.describe_ast = " + describe_ast.toString()); | ||
return code.join("\n\n"); | ||
@@ -38,37 +37,2 @@ }())( | ||
function describe_ast() { | ||
var out = OutputStream({ beautify: true }); | ||
function doitem(ctor) { | ||
out.print("AST_" + ctor.TYPE); | ||
var props = ctor.SELF_PROPS.filter(function(prop){ | ||
return !/^\$/.test(prop); | ||
}); | ||
if (props.length > 0) { | ||
out.space(); | ||
out.with_parens(function(){ | ||
props.forEach(function(prop, i){ | ||
if (i) out.space(); | ||
out.print(prop); | ||
}); | ||
}); | ||
} | ||
if (ctor.documentation) { | ||
out.space(); | ||
out.print_string(ctor.documentation); | ||
} | ||
if (ctor.SUBCLASSES.length > 0) { | ||
out.space(); | ||
out.with_block(function(){ | ||
ctor.SUBCLASSES.forEach(function(ctor, i){ | ||
out.indent(); | ||
doitem(ctor); | ||
out.newline(); | ||
}); | ||
}); | ||
} | ||
}; | ||
doitem(AST_Node); | ||
return out + "\n"; | ||
} | ||
function infer_options(options) { | ||
@@ -75,0 +39,0 @@ var result = UglifyJS.minify("", options); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
2356997
9
24
32558