From: Mihai Bazon Date: Fri, 21 Dec 2012 19:04:15 +0000 (+0200) Subject: Optimize new Array(1, 2, 3) → [1, 2, 3] X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=31c4a37e37acc1e3ddd44c6c23f61a330e7b1484;p=UglifyJS.git Optimize new Array(1, 2, 3) → [1, 2, 3] Close #74 --- diff --git a/lib/compress.js b/lib/compress.js index 9387a821..0f3a795c 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -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); } } }