aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-12-21 21:04:15 +0200
committerMihai Bazon <mihai@bazon.net>2012-12-21 21:04:35 +0200
commit31c4a37e37acc1e3ddd44c6c23f61a330e7b1484 (patch)
treea989ae57ea7c4fdf0a529210239a73318b64ab42 /lib/compress.js
parent08219f0cee9d0be355daa57f873465765d36cd81 (diff)
downloadtracifyjs-31c4a37e37acc1e3ddd44c6c23f61a330e7b1484.tar.gz
tracifyjs-31c4a37e37acc1e3ddd44c6c23f61a330e7b1484.zip
Optimize new Array(1, 2, 3) → [1, 2, 3]
Close #74
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}