diff options
Diffstat (limited to 'test/compress/reduce_vars.js')
-rw-r--r-- | test/compress/reduce_vars.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js index 9010fb1e..85969f90 100644 --- a/test/compress/reduce_vars.js +++ b/test/compress/reduce_vars.js @@ -7383,3 +7383,26 @@ issue_3974: { } expect_stdout: "PASS" } + +issue_4030: { + options = { + collapse_vars: true, + evaluate: true, + reduce_vars: true, + toplevel: true, + unused: true, + } + input: { + var a; + { + delete (a = "PASS"); + A = "PASS"; + } + console.log(A); + } + expect: { + A = "PASS"; + console.log("PASS"); + } + expect_stdout: "PASS" +} |