aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/destructured.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/compress/destructured.js b/test/compress/destructured.js
index c506e8f0..70c4392a 100644
--- a/test/compress/destructured.js
+++ b/test/compress/destructured.js
@@ -2302,3 +2302,27 @@ issue_4485_3: {
expect_stdout: true
node_version: ">=6"
}
+
+issue_4500: {
+ options = {
+ evaluate: true,
+ keep_fnames: true,
+ reduce_vars: true,
+ toplevel: true,
+ unused: true,
+ }
+ input: {
+ var a = function f(b) {
+ return [ b ] = [], b;
+ }("FAIL");
+ console.log(a || "PASS");
+ }
+ expect: {
+ var a = function f(b) {
+ return [ b ] = [], b;
+ }("FAIL");
+ console.log(a || "PASS");
+ }
+ expect_stdout: "PASS"
+ node_version: ">=6"
+}