diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-19 17:24:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 01:24:29 +0800 |
commit | 882968c68c79a0f285d59f4b7ea50a62dc9ba1b6 (patch) | |
tree | 05f9d2b3b8891fedb4c9a45633e26ba3385aace7 /test/compress | |
parent | acc2d7d8455ed7302a78948b3c8678990dc1765a (diff) | |
download | tracifyjs-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.js | 22 |
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" +} |