aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/reduce_vars.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index 08accc45..94852d45 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -7095,3 +7095,30 @@ issue_3894: {
}
expect_stdout: "PASS"
}
+
+issue_3922: {
+ options = {
+ evaluate: true,
+ keep_fargs: "strict",
+ pure_getters: "strict",
+ reduce_vars: true,
+ side_effects: true,
+ unused: true,
+ }
+ input: {
+ (function(a) {
+ var b;
+ b && b[c];
+ a |= this;
+ console.log("PASS");
+ var c = a.undefined;
+ })();
+ }
+ expect: {
+ (function() {
+ 0;
+ console.log("PASS");
+ })();
+ }
+ expect_stdout: "PASS"
+}