Optimize new Array(1, 2, 3) → [1, 2, 3]

Close #74
This commit is contained in:
Mihai Bazon
2012-12-21 21:04:15 +02:00
parent 08219f0cee
commit 31c4a37e37

View 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);
}
}
}