From 7dd1e0f34b1298cf98f4a85d7db8914127074e71 Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Tue, 18 Apr 2017 14:32:17 +0800 Subject: [PATCH] remove recursive `collapse_single_use_vars()` - let `OPT(AST_Node)` do their job --- lib/compress.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/compress.js b/lib/compress.js index 4b0b1272..39be351e 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -647,11 +647,6 @@ merge(Compressor.prototype, { for (var stat_index = statements.length; --stat_index >= 0;) { var stat = statements[stat_index]; - // Process child blocks of statement if present. - [stat, stat.body, stat.alternative, stat.bcatch, stat.bfinally].forEach(function(node) { - node && node.body && collapse_single_use_vars(node.body, compressor); - }); - // The variable definition must precede a statement. if (stat_index <= 0) break; var prev_stat_index = stat_index - 1;