aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/eliminator/node_modules/uglify-js/lib/process.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/eliminator/node_modules/uglify-js/lib/process.js b/tools/eliminator/node_modules/uglify-js/lib/process.js
index 85709857..c3abb6f8 100644
--- a/tools/eliminator/node_modules/uglify-js/lib/process.js
+++ b/tools/eliminator/node_modules/uglify-js/lib/process.js
@@ -1751,7 +1751,9 @@ function gen_code(ast, options) {
out += " " + make_name(name);
}
out += "(" + add_commas(MAP(args, make_name)) + ")";
- return add_spaces([ out, make_block(body) ]);
+ var result = add_spaces([ out, make_block(body) ])
+ if (!name) result = "(" + result + ")";
+ return result;
};
function must_has_semicolon(node) {