diff options
Diffstat (limited to 'test/compress/ie8.js')
-rw-r--r-- | test/compress/ie8.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/compress/ie8.js b/test/compress/ie8.js index ed3950a0..7e49672f 100644 --- a/test/compress/ie8.js +++ b/test/compress/ie8.js @@ -2919,3 +2919,28 @@ issue_4568: { } expect_stdout: "undefined 1" } + +issue_4729: { + options = { + ie8: true, + toplevel: true, + unused: true, + } + input: { + try { + f; + } catch(e) { + var a = a && a[function f() {}]; + console.log("PASS"); + } + } + expect: { + try { + f; + } catch(e) { + (function f() {}); + console.log("PASS"); + } + } + expect_stdout: "PASS" +} |