From d97672613d28632a038fa14eb35d8c19c748320d Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 8 Sep 2020 15:12:27 +0100 Subject: fix corner case in `reduce_vars` (#4095) --- lib/compress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compress.js') 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); -- cgit v1.2.3