aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-01-10 20:17:39 +0000
committerGitHub <noreply@github.com>2021-01-11 04:17:39 +0800
commit16b97f9558e07ae95ea7c414e926d697c2521d60 (patch)
treee6694faf720f177acef966a78b6a5e235e310603 /test/compress
parentdbfa5d4d14c1984da94c2435f349ecbd3dbb36e9 (diff)
downloadtracifyjs-16b97f9558e07ae95ea7c414e926d697c2521d60.tar.gz
tracifyjs-16b97f9558e07ae95ea7c414e926d697c2521d60.zip
fix corner case in `arguments` (#4535)
fixes #4534
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/awaits.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/awaits.js b/test/compress/awaits.js
index 8caa60c0..89d11bb9 100644
--- a/test/compress/awaits.js
+++ b/test/compress/awaits.js
@@ -977,3 +977,21 @@ issue_4454_2: {
]
node_version: ">=8"
}
+
+issue_4534: {
+ options = {
+ arguments: true,
+ }
+ input: {
+ (function(await) {
+ (async () => console.log(arguments[0]))();
+ })("PASS");
+ }
+ expect: {
+ (function(await) {
+ (async () => console.log(arguments[0]))();
+ })("PASS");
+ }
+ expect_stdout: "PASS"
+ node_version: ">=8"
+}