uglify-js
Advanced tools
Comparing version 2.3.5 to 2.3.6
@@ -63,3 +63,4 @@ /*********************************************************************** | ||
comments : false, | ||
preserve_line : false | ||
preserve_line : false, | ||
negate_iife : !(options && options.beautify), | ||
}, true); | ||
@@ -356,3 +357,3 @@ | ||
var needs_parens = self.needs_parens(stream); | ||
var fc = self instanceof AST_Function && !stream.option("beautify"); | ||
var fc = self instanceof AST_Function && stream.option("negate_iife"); | ||
if (force_parens || (needs_parens && !fc)) { | ||
@@ -1127,3 +1128,3 @@ stream.with_parens(function(){ | ||
if ((p instanceof AST_Seq && p.car === node ) || | ||
(p instanceof AST_Call && p.expression === node ) || | ||
(p instanceof AST_Call && p.expression === node && !(p instanceof AST_New) ) || | ||
(p instanceof AST_Dot && p.expression === node ) || | ||
@@ -1130,0 +1131,0 @@ (p instanceof AST_Sub && p.expression === node ) || |
@@ -190,2 +190,3 @@ /*********************************************************************** | ||
g.undeclared = true; | ||
g.global = true; | ||
globals.set(name, g); | ||
@@ -192,0 +193,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"main": "tools/node.js", | ||
"version": "2.3.5", | ||
"version": "2.3.6", | ||
"engines": { "node" : ">=0.4.0" }, | ||
@@ -9,0 +9,0 @@ "maintainers": [{ |
@@ -290,2 +290,6 @@ UglifyJS 2 | ||
gzip could be smaller; size after gzip insignificantly larger). | ||
- `negate-iife` (default `!beautify`) -- prefer negation, rather than | ||
parens, for "Immediately-Called Function Expressions". This defaults to | ||
`true` when beautification is off, and `false` if beautification is on; | ||
pass it manually to force a value. | ||
@@ -292,0 +296,0 @@ ### Keeping copyright notices or other comments |
Sorry, the diff of this file is not supported yet
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
335695
8112
589