aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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"
+}