diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/async.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/compress/async.js b/test/compress/async.js index 0f997332..cab1f92a 100644 --- a/test/compress/async.js +++ b/test/compress/async.js @@ -287,3 +287,22 @@ issue_4337: { expect_stdout: "PASS" node_version: ">=8" } + +issue_4340: { + options = { + evaluate: true, + reduce_vars: true, + } + input: { + (async function a(a) { + console.log(a || "PASS"); + })(); + } + expect: { + (async function a(a) { + console.log(a || "PASS"); + })(); + } + expect_stdout: "PASS" + node_version: ">=8" +} |