aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/async.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/async.js b/test/compress/async.js
index 8da545bd..0f997332 100644
--- a/test/compress/async.js
+++ b/test/compress/async.js
@@ -264,3 +264,26 @@ issue_4335_2: {
expect_stdout: "PASS"
node_version: ">=8"
}
+
+issue_4337: {
+ options = {
+ reduce_vars: true,
+ unused: true,
+ }
+ input: {
+ (function(a) {
+ a();
+ })(async function() {
+ console.log("PASS");
+ });
+ }
+ expect: {
+ (function(a) {
+ (async function() {
+ console.log("PASS");
+ })();
+ })();
+ }
+ expect_stdout: "PASS"
+ node_version: ">=8"
+}