fix slowness in unused for blocks

This commit is contained in:
kzc 2017-12-17 21:21:05 -05:00
parent 80c8dfcde6
commit 992bc88800

View File

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