From 3cca0d624980e78db2c38ffaebdac53933be68fa Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 22 Sep 2020 05:11:25 +0100 Subject: fix corner case in `evaluate` (#4143) fixes #4142 --- test/compress/numbers.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/compress/numbers.js b/test/compress/numbers.js index 7f355a12..c7aab685 100644 --- a/test/compress/numbers.js +++ b/test/compress/numbers.js @@ -1322,3 +1322,16 @@ issue_4137: { } expect_stdout: "0" } + +issue_4142: { + options = { + evaluate: true, + } + input: { + console.log("" + +(0 === console)); + } + expect: { + console.log("" + +(0 === console)); + } + expect_stdout: "0" +} -- cgit v1.2.3