diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-01-01 04:56:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 12:56:13 +0800 |
commit | 2dbafbb4ee9c5cb82665299ee9343c80e96daad4 (patch) | |
tree | 5b66f7838396dc84fd73c18fdfea66f41b9a921a /lib | |
parent | 311c074622e0aabbd79b0d701c19f21b8b093b77 (diff) | |
download | tracifyjs-2dbafbb4ee9c5cb82665299ee9343c80e96daad4.tar.gz tracifyjs-2dbafbb4ee9c5cb82665299ee9343c80e96daad4.zip |
fix corner case in `reduce_vars` (#4490)
fixes #4489
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index 6c26e8a9..bd98c306 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -9427,8 +9427,7 @@ merge(Compressor.prototype, { } })); } else { - value = fixed.optimize(compressor); - if (value === fixed) value = value.transform(new TreeTransformer(function(node, descend) { + value = fixed.optimize(compressor).transform(new TreeTransformer(function(node, descend) { if (node instanceof AST_Scope) return node; node = node.clone(); descend(node, this); |