Optimize new Array(1, 2, 3) → [1, 2, 3]
authorMihai Bazon <mihai@bazon.net>
Fri, 21 Dec 2012 19:04:15 +0000 (21:04 +0200)
committerMihai Bazon <mihai@bazon.net>
Fri, 21 Dec 2012 19:04:35 +0000 (21:04 +0200)
Close #74

lib/compress.js

index 9387a82..0f3a795 100644 (file)
@@ -1601,7 +1601,7 @@ merge(Compressor.prototype, {
                   case "Function":
                   case "Error":
                   case "Array":
-                    return make_node(AST_Call, self, self);
+                    return make_node(AST_Call, self, self).transform(compressor);
                 }
             }
         }