diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/rests.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/compress/rests.js b/test/compress/rests.js index 6bc5b756..017f871b 100644 --- a/test/compress/rests.js +++ b/test/compress/rests.js @@ -646,3 +646,20 @@ issue_4544_2: { expect_stdout: "PASS" node_version: ">=6" } + +issue_4562: { + options = { + evaluate: true, + reduce_vars: true, + rests: true, + unsafe: true, + } + input: { + console.log((([ ...[ a ] ]) => a)("foo")); + } + expect: { + console.log((([ a ]) => a)("foo")); + } + expect_stdout: "f" + node_version: ">=6" +} |