From d0bb1476397d2cf6f240267aa003fe6edc445683 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 26 Jan 2021 17:30:05 +0000 Subject: fix corner case in `inline` (#4596) fixes #4595 --- test/compress/awaits.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test/compress/awaits.js') diff --git a/test/compress/awaits.js b/test/compress/awaits.js index 0ffa1a9b..01a55710 100644 --- a/test/compress/awaits.js +++ b/test/compress/awaits.js @@ -1024,3 +1024,26 @@ issue_4581: { expect_stdout: "PASS" node_version: ">=8" } + +issue_4595: { + options = { + awaits: true, + inline: true, + } + input: { + (async function() { + await async function f() { + console.log(f.length); + }(); + })(); + } + expect: { + (async function() { + await async function f() { + console.log(f.length); + }(); + })(); + } + expect_stdout: "0" + node_version: ">=8" +} -- cgit v1.2.3