aboutsummaryrefslogtreecommitdiff
path: root/test/compress/default-values.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-07-07 15:45:24 +0100
committerGitHub <noreply@github.com>2021-07-07 22:45:24 +0800
commit2340feff875eb4b32e95abfe7526dede72ba2253 (patch)
tree2e6f666d5d908e4b47fb34649c6a74c85abe53a3 /test/compress/default-values.js
parent0c48b84540d0a19c41ecdb48c2ad5ea4c31c5acc (diff)
downloadtracifyjs-2340feff875eb4b32e95abfe7526dede72ba2253.tar.gz
tracifyjs-2340feff875eb4b32e95abfe7526dede72ba2253.zip
support destructured shorthand for default parameters (#5059)
closes #4990
Diffstat (limited to 'test/compress/default-values.js')
-rw-r--r--test/compress/default-values.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compress/default-values.js b/test/compress/default-values.js
index ec6a4ea5..b3662715 100644
--- a/test/compress/default-values.js
+++ b/test/compress/default-values.js
@@ -70,7 +70,7 @@ object_shorthand_assign: {
({ a = "PASS" } = 42);
console.log(a);
}
- expect_exact: '({a:a="PASS"}=42);console.log(a);'
+ expect_exact: '({a="PASS"}=42);console.log(a);'
expect_stdout: "PASS"
node_version: ">=6"
}
@@ -80,7 +80,7 @@ object_shorthand_declaration: {
var { a = "PASS" } = 42;
console.log(a);
}
- expect_exact: 'var{a:a="PASS"}=42;console.log(a);'
+ expect_exact: 'var{a="PASS"}=42;console.log(a);'
expect_stdout: "PASS"
node_version: ">=6"
}
@@ -91,7 +91,7 @@ object_shorthand_function: {
console.log(a);
})(42);
}
- expect_exact: '(function({a:a="PASS"}){console.log(a)})(42);'
+ expect_exact: '(function({a="PASS"}){console.log(a)})(42);'
expect_stdout: "PASS"
node_version: ">=6"
}