From 560ccc1221639dca9db354ad6830e418a9f0073d Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 29 Dec 2020 11:43:12 +0000 Subject: enhance `reduce_vars` (#4479) --- lib/compress.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/compress.js') diff --git a/lib/compress.js b/lib/compress.js index 0369b63d..591ad4dd 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -771,8 +771,7 @@ merge(Compressor.prototype, { } var d = sym.definition(); d.assignments++; - if (!is_modified(compressor, tw, node, node.right, 0) - && can_drop_symbol(sym) && safe_to_assign(tw, d)) { + if (!is_modified(compressor, tw, node, node.right, 0) && safe_to_assign(tw, d)) { push_ref(d, sym); mark(tw, d); if (d.single_use && left instanceof AST_Destructured) d.single_use = false; -- cgit v1.2.3