diff options
Diffstat (limited to 'test/compress/ie8.js')
-rw-r--r-- | test/compress/ie8.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/compress/ie8.js b/test/compress/ie8.js index 2115dbc6..8ed23102 100644 --- a/test/compress/ie8.js +++ b/test/compress/ie8.js @@ -2634,3 +2634,30 @@ issue_4015: { } expect_stdout: "1" } + +issue_4019: { + options = { + reduce_vars: true, + toplevel: true, + unused: true, + } + mangle = { + ie8: true, + toplevel: true, + } + input: { + var a = function() { + try { + console.log("FAIL"); + } catch (b) {} + }, a = (console.log(a.length), ++a); + } + expect: { + var o = function() { + try { + console.log("FAIL"); + } catch (o) {} + }, o = (console.log(o.length), ++o); + } + expect_stdout: "0" +} |