diff options
Diffstat (limited to 'test/compress/collapse_vars.js')
-rw-r--r-- | test/compress/collapse_vars.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js index d68c10e2..ff6b9a29 100644 --- a/test/compress/collapse_vars.js +++ b/test/compress/collapse_vars.js @@ -8375,3 +8375,19 @@ issue_4038: { } expect_stdout: "PASS" } + +issue_4040: { + options = { + collapse_vars: true, + toplevel: true, + } + input: { + var a = console.log("PASS") && a.p; + delete NaN; + } + expect: { + var a = console.log("PASS") && a.p; + delete NaN; + } + expect_stdout: "PASS" +} |