aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/reduce_vars.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index 82b00211..94d37cb7 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -2217,3 +2217,26 @@ try_abort: {
}
expect_stdout: "1 undefined"
}
+
+boolean_binary_assign: {
+ options = {
+ evaluate: true,
+ reduce_vars: true,
+ unused: true,
+ }
+ input: {
+ !function() {
+ var a;
+ void 0 && (a = 1);
+ console.log(a);
+ }();
+ }
+ expect: {
+ !function() {
+ var a;
+ void 0;
+ console.log(a);
+ }();
+ }
+ expect_stdout: "undefined"
+}