diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-07 08:05:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 16:05:11 +0800 |
commit | fbecedf94ca2c2f667de39dff2d7fbb77629eb40 (patch) | |
tree | 5dd2d6d1a44f111cd2a81d6998d2442461ca1409 /test/compress/async.js | |
parent | 2f31f950959b1dea835ad2d107148666412bd902 (diff) | |
download | tracifyjs-fbecedf94ca2c2f667de39dff2d7fbb77629eb40.tar.gz tracifyjs-fbecedf94ca2c2f667de39dff2d7fbb77629eb40.zip |
fix corner case in `evaluate` (#4341)
fixes #4340
Diffstat (limited to 'test/compress/async.js')
-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" +} |