fix slowness in unused for blocks (#2614)

fixes #2609
This commit is contained in:
kzc
2017-12-17 23:06:14 -05:00
committed by Alex Lam S.L
parent 80c8dfcde6
commit 85bfa17139

View File

@@ -2827,6 +2827,7 @@ merge(Compressor.prototype, {
if (in_list && all(node.body, can_be_evicted_from_block)) {
return MAP.splice(node.body);
}
return node;
}
if (node instanceof AST_Scope) {
var save_scope = scope;