Skip to content

Commit

Permalink
fix slowness in unused for blocks (#2614)
Browse files Browse the repository at this point in the history
fixes #2609
  • Loading branch information
kzc authored and alexlamsl committed Dec 18, 2017
1 parent 80c8dfc commit 85bfa17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compress.js
Expand Up @@ -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;
Expand Down

0 comments on commit 85bfa17

Please sign in to comment.