From f9a2a9d78e8437d8b9591e97ab280e20b9442b35 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Mon, 22 Feb 2021 07:44:16 +0000 Subject: enhance `side_effects` (#4675) --- lib/compress.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/compress.js') diff --git a/lib/compress.js b/lib/compress.js index 0a89de7e..c6451012 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -8516,6 +8516,8 @@ merge(Compressor.prototype, { } }); return node; + } else if (!node.has_side_effects(compressor)) { + self.drop_side_effect_free = return_null; } } var arg_used, insert, in_loop, scope; -- cgit v1.2.3