aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-03-24 02:10:02 +0000
committerGitHub <noreply@github.com>2021-03-24 10:10:02 +0800
commit40ef074cb30e0b0114466406f6b9d8592faad14e (patch)
tree6fd584494815cca737136604aec6163f6e5b2b6d /test/compress
parent78e3936cd489b6a764027f35c27e8438c1bee132 (diff)
downloadtracifyjs-40ef074cb30e0b0114466406f6b9d8592faad14e.tar.gz
tracifyjs-40ef074cb30e0b0114466406f6b9d8592faad14e.zip
fix corner case in `comparisons` (#4820)
fixes #4819
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"
+}