diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-04-24 00:17:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-24 07:17:30 +0800 |
commit | 9b8deff64d957b2804082572340cdd8175eff731 (patch) | |
tree | d3019c1d4375f1e29585f3d505e7d20f37008767 /test/compress/drop-unused.js | |
parent | f46209b7e5ecb33d9596fb946975be5f65c0b727 (diff) | |
download | tracifyjs-9b8deff64d957b2804082572340cdd8175eff731.tar.gz tracifyjs-9b8deff64d957b2804082572340cdd8175eff731.zip |
enhance `pure_getters`, `reduce_vars` & `unused` (#4863)
Diffstat (limited to 'test/compress/drop-unused.js')
-rw-r--r-- | test/compress/drop-unused.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compress/drop-unused.js b/test/compress/drop-unused.js index 4ade0863..6c4ca291 100644 --- a/test/compress/drop-unused.js +++ b/test/compress/drop-unused.js @@ -2371,6 +2371,7 @@ function_parameter_ie8: { issue_3664: { options = { pure_getters: "strict", + side_effects: true, unused: true, } input: { @@ -2381,7 +2382,7 @@ issue_3664: { } expect: { console.log(function() { - var b = ([ b && console.log("FAIL") ].p = 0, 0); + var b = (b && console.log("FAIL"), 0, 0); return "PASS"; }()); } @@ -2391,6 +2392,7 @@ issue_3664: { issue_3673: { options = { pure_getters: "strict", + sequences: true, side_effects: true, toplevel: true, unused: true, @@ -2401,8 +2403,6 @@ issue_3673: { console.log("PASS"); } expect: { - var a; - (a = [ a ]).p = 42; console.log("PASS"); } expect_stdout: "PASS" |