diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-02-25 04:48:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 12:48:40 +0800 |
commit | 6d7ab63a6600c65958f4788dee6da5b2ea43476c (patch) | |
tree | 67d2fc2054c8f7287852bca7c691d6a45e576ea6 /lib/compress.js | |
parent | 822b1da5d2be26245baa555e75bd70a71d3be506 (diff) | |
download | tracifyjs-6d7ab63a6600c65958f4788dee6da5b2ea43476c.tar.gz tracifyjs-6d7ab63a6600c65958f4788dee6da5b2ea43476c.zip |
fix corner cases in `sequences` (#4690)
fixes #4689
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 2b28c754..08b0987a 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -3118,7 +3118,7 @@ merge(Compressor.prototype, { } } } else if (stat instanceof AST_ForIn) { - stat.object = cons_seq(stat.object); + if (!is_lexical_definition(stat.init)) stat.object = cons_seq(stat.object); } else if (stat instanceof AST_If) { stat.condition = cons_seq(stat.condition); } else if (stat instanceof AST_Switch) { |