diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-01-17 22:36:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 06:36:59 +0800 |
commit | e23a10f7f96cda932c605988d2d99bb5225d18a5 (patch) | |
tree | 55bc342a6c9bd3404bf5f5094055e9eaea3fb3d4 /lib/compress.js | |
parent | 884ec4e8a5dc83aa8897bfa7bf49034907311e47 (diff) | |
download | tracifyjs-e23a10f7f96cda932c605988d2d99bb5225d18a5.tar.gz tracifyjs-e23a10f7f96cda932c605988d2d99bb5225d18a5.zip |
fix corner case in `loops` (#4565)
fixes #4564
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 d5334a95..81511535 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -6169,7 +6169,7 @@ merge(Compressor.prototype, { var def = sym.definition(); if (def.scope !== self) { var d = find_variable(sym.name); - if ((d && d.redefined() || d) === def) return; + if (d === def || d && d.redefined() === def) return; } node.object.walk(tw); return true; |