diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-08-26 13:41:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-26 20:41:11 +0800 |
commit | b1cc15e85bf57042fc390c58f2b513304f8543c6 (patch) | |
tree | eada050a29449a9d50569b418542e511e56ff81d /test/compress | |
parent | 3aa765e4296c4caf2f3b2b3e6b43b65caf05a28f (diff) | |
download | tracifyjs-b1cc15e85bf57042fc390c58f2b513304f8543c6.tar.gz tracifyjs-b1cc15e85bf57042fc390c58f2b513304f8543c6.zip |
fix corner case in `sequences` (#4080)
fixes #4079
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/sequences.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/sequences.js b/test/compress/sequences.js index 32db63d3..b8190366 100644 --- a/test/compress/sequences.js +++ b/test/compress/sequences.js @@ -1155,3 +1155,25 @@ issue_3703: { } expect_stdout: "PASS" } + +issue_4079: { + options = { + sequences: true, + side_effects: true, + } + input: { + try { + typeof (0, A); + } catch (e) { + console.log("PASS"); + } + } + expect: { + try { + A; + } catch (e) { + console.log("PASS"); + } + } + expect_stdout: "PASS" +} |