diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-17 16:55:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 00:55:19 +0800 |
commit | 02fdcfde01cf41cae9449dbde4ceb74564bb35f3 (patch) | |
tree | ed03d7d9146ea280332af13f676bc31a1b492186 /test | |
parent | a96f087ac33b6d18d5ffa3cacd39dd693defb7cf (diff) | |
download | tracifyjs-02fdcfde01cf41cae9449dbde4ceb74564bb35f3.tar.gz tracifyjs-02fdcfde01cf41cae9449dbde4ceb74564bb35f3.zip |
fix corner case in `inline` (#4389)
fixes #4388
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/arrows.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/compress/arrows.js b/test/compress/arrows.js index 02c4acde..eded9134 100644 --- a/test/compress/arrows.js +++ b/test/compress/arrows.js @@ -336,3 +336,18 @@ trim_body: { expect_stdout: "PASS undefined" node_version: ">=4" } + +issue_4388: { + options = { + inline: true, + toplevel: true, + } + input: { + (arguments => console.log(arguments && arguments))(); + } + expect: { + (arguments => console.log(arguments && arguments))(); + } + expect_stdout: "undefined" + node_version: ">=4" +} |