From 95cfce68eae6173a76e8f01fae08a91f5d8996d2 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 23 Jan 2018 05:45:45 +0800 Subject: [PATCH] backport of #2835 (#2841) --- lib/compress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compress.js b/lib/compress.js index a8fa0e1c..33b43134 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1642,7 +1642,7 @@ merge(Compressor.prototype, { var stat = null; for (var i = 0, len = block.body.length; i < len; i++) { var line = block.body[i]; - if (line instanceof AST_Definitions && declarations_only(line)) { + if (line instanceof AST_Var && declarations_only(line)) { decls.push(line); } else if (stat) { return false; -- 2.34.1