aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-12-19 17:24:29 +0000
committerGitHub <noreply@github.com>2020-12-20 01:24:29 +0800
commit882968c68c79a0f285d59f4b7ea50a62dc9ba1b6 (patch)
tree05f9d2b3b8891fedb4c9a45633e26ba3385aace7 /test/compress
parentacc2d7d8455ed7302a78948b3c8678990dc1765a (diff)
downloadtracifyjs-882968c68c79a0f285d59f4b7ea50a62dc9ba1b6.tar.gz
tracifyjs-882968c68c79a0f285d59f4b7ea50a62dc9ba1b6.zip
fix corner case in `inline` (#4418)
fixes #4417
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/async.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/async.js b/test/compress/async.js
index 4fd16efd..d73bba41 100644
--- a/test/compress/async.js
+++ b/test/compress/async.js
@@ -597,3 +597,25 @@ issue_4406: {
expect_stdout: "PASS"
node_version: ">=8"
}
+
+issue_4417: {
+ options = {
+ inline: true,
+ }
+ input: {
+ (async function() {
+ console.log(function() {
+ return await => 0;
+ }().prototype);
+ })();
+ }
+ expect: {
+ (async function() {
+ console.log(function() {
+ return await => 0;
+ }().prototype);
+ })();
+ }
+ expect_stdout: "undefined"
+ node_version: ">=8"
+}