aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/assignments.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/assignments.js b/test/compress/assignments.js
index db562292..80538bd8 100644
--- a/test/compress/assignments.js
+++ b/test/compress/assignments.js
@@ -589,3 +589,17 @@ issue_4815_2: {
expect_stdout: "PASS"
node_version: ">=15"
}
+
+issue_4819: {
+ options = {
+ comparisons: true,
+ }
+ input: {
+ console.log(void 0 === ([].p &&= 42));
+ }
+ expect: {
+ console.log(void 0 === ([].p &&= 42));
+ }
+ expect_stdout: "true"
+ node_version: ">=15"
+}