uglify-js
Advanced tools
Comparing version 2.4.13 to 2.4.14
@@ -298,6 +298,6 @@ /*********************************************************************** | ||
arg_parameter_pairs.forEach(function(pair) { | ||
var split = pair.split(":"); | ||
var splitAt = pair.lastIndexOf(":"); | ||
args.push(split[0]); | ||
parameters.push(split[1]); | ||
args.push(pair.substr(0, splitAt)); | ||
parameters.push(pair.substr(splitAt + 1)); | ||
}); | ||
@@ -304,0 +304,0 @@ |
@@ -54,3 +54,3 @@ /*********************************************************************** | ||
body : from_moz(M.block).body, | ||
bcatch : from_moz(M.handlers[0]), | ||
bcatch : from_moz(M.handlers ? M.handlers[0] : M.handler), | ||
bfinally : M.finalizer ? new AST_Finally(from_moz(M.finalizer)) : null | ||
@@ -57,0 +57,0 @@ }); |
@@ -999,4 +999,8 @@ /*********************************************************************** | ||
output.print(op); | ||
if (/^[a-z]/i.test(op)) | ||
if (/^[a-z]/i.test(op) | ||
|| (/[+-]$/.test(op) | ||
&& self.expression instanceof AST_UnaryPrefix | ||
&& /^[+-]/.test(self.expression.operator))) { | ||
output.space(); | ||
} | ||
self.expression.print(output); | ||
@@ -1003,0 +1007,0 @@ }); |
@@ -171,10 +171,3 @@ /*********************************************************************** | ||
function is_identifier_string(str){ | ||
var i = str.length; | ||
if (i == 0) return false; | ||
if (!is_identifier_start(str.charCodeAt(0))) return false; | ||
while (--i >= 0) { | ||
if (!is_identifier_char(str.charAt(i))) | ||
return false; | ||
} | ||
return true; | ||
return /^[a-z_$][a-z0-9_$]*$/i.test(str); | ||
}; | ||
@@ -181,0 +174,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"main": "tools/node.js", | ||
"version": "2.4.13", | ||
"version": "2.4.14", | ||
"engines": { "node" : ">=0.4.0" }, | ||
@@ -9,0 +9,0 @@ "maintainers": [{ |
@@ -29,3 +29,3 @@ keep_properties: { | ||
a["*"] = "asterisk"; | ||
a.\u0EB3 = "unicode"; | ||
a["\u0EB3"] = "unicode"; | ||
a[""] = "whitespace"; | ||
@@ -52,5 +52,5 @@ a["1_1"] = "foo"; | ||
a["*"] = "asterisk"; | ||
a.\u0EB3 = "unicode"; | ||
a["\u0EB3"] = "unicode"; | ||
a[""] = "whitespace"; | ||
} | ||
} |
@@ -118,3 +118,3 @@ var path = require("path"); | ||
if (sourcesContent.hasOwnProperty(file)) { | ||
options.source_map.get().setSourceContent(file, sourcesContent[file]); | ||
output.source_map.get().setSourceContent(file, sourcesContent[file]); | ||
} | ||
@@ -130,2 +130,7 @@ } | ||
toplevel.print(stream); | ||
if(options.outSourceMap){ | ||
stream += "\n//# sourceMappingURL=" + options.outSourceMap; | ||
} | ||
return { | ||
@@ -132,0 +137,0 @@ code : stream + "", |
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
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
371584