From: Alex Lam S.L Date: Mon, 22 Jan 2018 21:45:45 +0000 (+0800) Subject: backport of #2835 (#2841) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=95cfce68eae6173a76e8f01fae08a91f5d8996d2;p=UglifyJS.git backport of #2835 (#2841) --- 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;