diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-03-14 06:09:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 14:09:29 +0800 |
commit | e124ef57e34190205534aa3ab856a7fcb6caaab5 (patch) | |
tree | ea9d8cf90b0b630de3270b4d4c35bb7c4e0e0158 /test | |
parent | 73e6b2550bf0cc08e4bc95ac1e1d3b8b650c5bf8 (diff) | |
download | tracifyjs-e124ef57e34190205534aa3ab856a7fcb6caaab5.tar.gz tracifyjs-e124ef57e34190205534aa3ab856a7fcb6caaab5.zip |
parse parentheses-terminated statements correctly (#4774)
fixes #4772
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/arrows.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/compress/arrows.js b/test/compress/arrows.js index 6cb55223..c906aa4c 100644 --- a/test/compress/arrows.js +++ b/test/compress/arrows.js @@ -803,3 +803,13 @@ issue_4687_2: { expect_stdout: "PASS" node_version: ">=4" } + +issue_4772: { + input: { + var f = a => (a) + /**/ console.log(f("PASS")); + } + expect_exact: 'var f=a=>a;console.log(f("PASS"));' + expect_stdout: "PASS" + node_version: ">=4" +} |