aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 2bcfcf30..1d6a943b 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -811,6 +811,11 @@ merge(Compressor.prototype, {
if (stat instanceof AST_SimpleStatement) {
stat.body = (function transform(thing) {
return thing.transform(new TreeTransformer(function(node){
+ if (node instanceof AST_New
+ && node.expression instanceof AST_Call
+ && node.expression.expression instanceof AST_Function) {
+ return node;
+ }
if (node instanceof AST_Call && node.expression instanceof AST_Function) {
return make_node(AST_UnaryPrefix, node, {
operator: "!",