aboutsummaryrefslogtreecommitdiff
path: root/test/compress/destructured.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/destructured.js')
-rw-r--r--test/compress/destructured.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/compress/destructured.js b/test/compress/destructured.js
index cebb70ae..8671d87b 100644
--- a/test/compress/destructured.js
+++ b/test/compress/destructured.js
@@ -1503,6 +1503,25 @@ issue_4294: {
node_version: ">=6"
}
+issue_4297: {
+ options = {
+ reduce_vars: true,
+ unused: true,
+ }
+ input: {
+ console.log(typeof function(a) {
+ return { a } = a;
+ }(function() {}));
+ }
+ expect: {
+ console.log(typeof function(a) {
+ return { a } = a;
+ }(function() {}));
+ }
+ expect_stdout: "function"
+ node_version: ">=6"
+}
+
issue_4298: {
options = {
merge_vars: true,