diff options
Diffstat (limited to 'test/compress/merge_vars.js')
-rw-r--r-- | test/compress/merge_vars.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/compress/merge_vars.js b/test/compress/merge_vars.js index fd650f9d..c63f33d0 100644 --- a/test/compress/merge_vars.js +++ b/test/compress/merge_vars.js @@ -486,3 +486,29 @@ issue_4112: { } expect_stdout: "function" } + +issue_4115: { + options = { + merge_vars: true, + toplevel: true, + } + input: { + L: { + var o = typeof console; + for (var k in o) + break L; + var a = 0; + } + console.log(typeof a); + } + expect: { + L: { + var o = typeof console; + for (var k in o) + break L; + var a = 0; + } + console.log(typeof a); + } + expect_stdout: "undefined" +} |