diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-12-31 13:10:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-31 13:10:05 +0800 |
commit | 99ac73a635d641935331e71d519c24297b50dd32 (patch) | |
tree | 20951dddabf14fc146adb80fd98e44deb2a3ee81 /test | |
parent | a2e4c2fd979782c1dd526fc1ac0b14490adb3344 (diff) | |
download | tracifyjs-99ac73a635d641935331e71d519c24297b50dd32.tar.gz tracifyjs-99ac73a635d641935331e71d519c24297b50dd32.zip |
enhance `booleans` (#3661)
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/collapse_vars.js | 4 | ||||
-rw-r--r-- | test/compress/transform.js | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js index 796fdb3f..a5975279 100644 --- a/test/compress/collapse_vars.js +++ b/test/compress/collapse_vars.js @@ -5863,8 +5863,8 @@ issue_2974: { var c = 0; (function(b) { var a = 2; - for (; b.null = -4, c++, b.null && --a > 0;); - })(!0), + for (;c++, (!0).null && --a > 0;); + })(), console.log(c); } expect_stdout: "1" diff --git a/test/compress/transform.js b/test/compress/transform.js index 867b8ade..66f19bd1 100644 --- a/test/compress/transform.js +++ b/test/compress/transform.js @@ -103,6 +103,7 @@ if_return: { booleans: true, conditionals: true, if_return: true, + passes: 2, sequences: true, side_effects: true, } |