From e124ef57e34190205534aa3ab856a7fcb6caaab5 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 14 Mar 2021 06:09:29 +0000 Subject: parse parentheses-terminated statements correctly (#4774) fixes #4772 --- test/compress/arrows.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') 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" +} -- cgit v1.2.3