diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-09-08 15:12:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 22:12:27 +0800 |
commit | d97672613d28632a038fa14eb35d8c19c748320d (patch) | |
tree | b08d7d9bbb165f782897102bfebe96c711593e73 /lib/compress.js | |
parent | 30761eede5a5f0970a5655a2288aca1734407a51 (diff) | |
download | tracifyjs-d97672613d28632a038fa14eb35d8c19c748320d.tar.gz tracifyjs-d97672613d28632a038fa14eb35d8c19c748320d.zip |
fix corner case in `reduce_vars` (#4095)
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 1ae5e8eb..f744ac6a 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -7779,7 +7779,7 @@ merge(Compressor.prototype, { single_use = false; } else if (recursive_ref(compressor, def)) { single_use = false; - } else if (compressor.option("ie8") && fixed.name && def !== fixed.name.definition()) { + } else if (fixed.name && fixed.name.definition() !== def) { single_use = false; } else if (def.scope !== self.scope || def.orig[0] instanceof AST_SymbolFunarg) { single_use = fixed.is_constant_expression(self.scope); |