diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/ie8.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/compress/ie8.js b/test/compress/ie8.js index 53f78f1b..68ccab17 100644 --- a/test/compress/ie8.js +++ b/test/compress/ie8.js @@ -2460,3 +2460,32 @@ issue_3825: { } expect_stdout: "undefined" } + +issue_3889: { + options = { + evaluate: true, + ie8: true, + reduce_vars: true, + } + input: { + function f(a) { + a = 0; + (function a() { + var a; + console.log(a); + })(); + } + f(); + } + expect: { + function f(a) { + a = 0; + (function a() { + var a; + console.log(a); + })(); + } + f(); + } + expect_stdout: "undefined" +} |