From 40ef074cb30e0b0114466406f6b9d8592faad14e Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 24 Mar 2021 02:10:02 +0000 Subject: fix corner case in `comparisons` (#4820) fixes #4819 --- test/compress/assignments.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/compress') 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" +} -- cgit v1.2.3