aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/collapse_vars.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js
index 97975b1c..446377a1 100644
--- a/test/compress/collapse_vars.js
+++ b/test/compress/collapse_vars.js
@@ -8084,3 +8084,27 @@ issue_3897: {
"2",
]
}
+
+issue_3908: {
+ options = {
+ collapse_vars: true,
+ conditionals: true,
+ reduce_vars: true,
+ side_effects: true,
+ toplevel: true,
+ unused: true,
+ }
+ input: {
+ if (console) {
+ var o = {
+ p: !1
+ }, a = o;
+ }
+ console.log("PASS");
+ }
+ expect: {
+ console && 0;
+ console.log("PASS");
+ }
+ expect_stdout: "PASS"
+}