From a9d934ab4eacc3c987a91f8e7fd176e983c36f55 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 16 Sep 2020 20:12:08 +0100 Subject: improve handling of `switch` statements (#4114) --- test/compress/reduce_vars.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js index 34d358cb..c911efe0 100644 --- a/test/compress/reduce_vars.js +++ b/test/compress/reduce_vars.js @@ -2176,6 +2176,7 @@ issue_1670_6: { keep_fargs: false, reduce_funcs: true, reduce_vars: true, + sequences: true, side_effects: true, switches: true, unused: true, @@ -2193,10 +2194,9 @@ issue_1670_6: { })(1); } expect: { - (function(a) { - a = 1; - console.log(a); - })(1); + (function() { + console.log(1); + })(); } expect_stdout: "1" } -- cgit v1.2.3