diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-01-18 22:34:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 06:34:48 +0800 |
commit | b57bae4b9e528ec7aeea7fd5768295a559cb5e5d (patch) | |
tree | 9226c609aba9ff4a04a6e1b70432a94f93f073a9 /lib/compress.js | |
parent | e23a10f7f96cda932c605988d2d99bb5225d18a5 (diff) | |
download | tracifyjs-b57bae4b9e528ec7aeea7fd5768295a559cb5e5d.tar.gz tracifyjs-b57bae4b9e528ec7aeea7fd5768295a559cb5e5d.zip |
fix corner case in `reduce_vars` (#4569)
fixes #4568
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 81511535..e33f4f3f 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -9733,7 +9733,7 @@ merge(Compressor.prototype, { single_use = false; } if (single_use) fixed.parent_scope = self.scope; - } else if (!fixed || !fixed.is_constant_expression()) { + } else if (!fixed || !fixed.is_constant_expression() || fixed.drop_side_effect_free(compressor)) { single_use = false; } } |