diff options
Diffstat (limited to 'test/compress/let.js')
-rw-r--r-- | test/compress/let.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/compress/let.js b/test/compress/let.js index 74e8fd81..c40ae9e3 100644 --- a/test/compress/let.js +++ b/test/compress/let.js @@ -840,3 +840,34 @@ issue_4225: { expect_stdout: true node_version: ">=4" } + +issue_4229: { + options = { + ie8: true, + side_effects: true, + } + input: { + "use strict"; + try { + (function f() { + f; + let f; + })(); + } catch (e) { + console.log("PASS"); + } + } + expect: { + "use strict"; + try { + (function f() { + f; + let f; + })(); + } catch (e) { + console.log("PASS"); + } + } + expect_stdout: "PASS" + node_version: ">=4" +} |