diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-12-31 09:57:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-31 09:57:35 +0800 |
commit | 94785e8e14efaba6b2d8cbe61f183cf920cdb329 (patch) | |
tree | b99157f63222e0a9c4fd77eed566e2539feb56cb /test | |
parent | 4dbdac9c312320770f8a24a3eda6e09aa429e3c0 (diff) | |
download | tracifyjs-94785e8e14efaba6b2d8cbe61f183cf920cdb329.tar.gz tracifyjs-94785e8e14efaba6b2d8cbe61f183cf920cdb329.zip |
fix corner case in `booleans` (#3659)
fixes #3658
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/booleans.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/booleans.js b/test/compress/booleans.js index a036a1d0..e1fa1a4f 100644 --- a/test/compress/booleans.js +++ b/test/compress/booleans.js @@ -110,3 +110,24 @@ issue_2737_2: { } expect_stdout: "PASS" } + +issue_3658: { + options = { + booleans: true, + evaluate: true, + reduce_vars: true, + } + input: { + console.log(function f() { + console || f(); + return "PASS"; + }()); + } + expect: { + console.log(function f() { + console || f(); + return "PASS"; + }()); + } + expect_stdout: "PASS" +} |