aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-12-17 16:55:19 +0000
committerGitHub <noreply@github.com>2020-12-18 00:55:19 +0800
commit02fdcfde01cf41cae9449dbde4ceb74564bb35f3 (patch)
treeed03d7d9146ea280332af13f676bc31a1b492186 /test
parenta96f087ac33b6d18d5ffa3cacd39dd693defb7cf (diff)
downloadtracifyjs-02fdcfde01cf41cae9449dbde4ceb74564bb35f3.tar.gz
tracifyjs-02fdcfde01cf41cae9449dbde4ceb74564bb35f3.zip
fix corner case in `inline` (#4389)
fixes #4388
Diffstat (limited to 'test')
-rw-r--r--test/compress/arrows.js15
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"
+}