Add negate_iife option to the code generator.
See discussion in a9511dfbe5
This commit is contained in:
@@ -60,7 +60,8 @@ function OutputStream(options) {
|
||||
bracketize : false,
|
||||
semicolons : true,
|
||||
comments : false,
|
||||
preserve_line : false
|
||||
preserve_line : false,
|
||||
negate_iife : !(options && options.beautify),
|
||||
}, true);
|
||||
|
||||
var indentation = 0;
|
||||
@@ -352,7 +353,7 @@ function OutputStream(options) {
|
||||
var self = this, generator = self._codegen;
|
||||
stream.push_node(self);
|
||||
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)) {
|
||||
stream.with_parens(function(){
|
||||
self.add_comments(stream);
|
||||
|
||||
Reference in New Issue
Block a user