aboutsummaryrefslogtreecommitdiff
path: root/test/compress/drop-unused.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/drop-unused.js')
-rw-r--r--test/compress/drop-unused.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/drop-unused.js b/test/compress/drop-unused.js
index ea7ee02f..942762f9 100644
--- a/test/compress/drop-unused.js
+++ b/test/compress/drop-unused.js
@@ -2081,3 +2081,24 @@ issue_3495: {
}
expect_stdout: "undefined"
}
+
+issue_3497: {
+ options = {
+ pure_getters: "strict",
+ side_effects: true,
+ unused: true,
+ }
+ input: {
+ var a;
+ console.log(function(b) {
+ (b += a).p = 0;
+ }());
+ }
+ expect: {
+ var a;
+ console.log(function(b) {
+ (b += a).p = 0;
+ }());
+ }
+ expect_stdout: "undefined"
+}