aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/async.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/compress/async.js b/test/compress/async.js
index 79189c7d..4fd16efd 100644
--- a/test/compress/async.js
+++ b/test/compress/async.js
@@ -567,3 +567,33 @@ issue_4377: {
expect_stdout: "function"
node_version: ">=8"
}
+
+issue_4406: {
+ options = {
+ merge_vars: true,
+ }
+ input: {
+ A = "PASS";
+ B = "FAIL";
+ (function() {
+ var a, b;
+ a = A;
+ (async function({
+ [console.log(a)]: {},
+ }) {})((b = B) && { undefined: b });
+ })();
+ }
+ expect: {
+ A = "PASS";
+ B = "FAIL";
+ (function() {
+ var a, b;
+ a = A;
+ (async function({
+ [console.log(a)]: {},
+ }) {})((b = B) && { undefined: b });
+ })();
+ }
+ expect_stdout: "PASS"
+ node_version: ">=8"
+}