diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-04-27 09:51:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 16:51:21 +0800 |
commit | 818738beec9f49f864407c68fa26cc022c88815f (patch) | |
tree | 5a6548f3ce7c5338ba75eb8855829c7ec9d81c91 /lib/compress.js | |
parent | bc2a4a3bb8c08139c53d0d595181010ead516d77 (diff) | |
download | tracifyjs-818738beec9f49f864407c68fa26cc022c88815f.tar.gz tracifyjs-818738beec9f49f864407c68fa26cc022c88815f.zip |
fix corner case in `ie8` (#3826)
fixes #3825
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 a42095cf..8eb684d3 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4938,7 +4938,7 @@ merge(Compressor.prototype, { } if (!compressor.option("ie8")) return node; if (node) exprs.push(node); - return make_sequence(this, exprs); + return exprs.length == 0 ? null : make_sequence(this, exprs); }); def(AST_Constant, return_null); def(AST_Dot, function(compressor, first_in_statement) { |