diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-23 05:45:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-23 05:45:45 +0800 |
commit | 95cfce68eae6173a76e8f01fae08a91f5d8996d2 (patch) | |
tree | 435cf7b1cb3ad084bb7dcb324137298936fca5c0 /lib/compress.js | |
parent | ec4202590d040942639e01eb8ae83bf7be7180dd (diff) | |
download | tracifyjs-95cfce68eae6173a76e8f01fae08a91f5d8996d2.tar.gz tracifyjs-95cfce68eae6173a76e8f01fae08a91f5d8996d2.zip |
backport of #2835 (#2841)
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |