diff options
Diffstat (limited to 'test/compress/const.js')
-rw-r--r-- | test/compress/const.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/compress/const.js b/test/compress/const.js index b20c4c59..694c9d16 100644 --- a/test/compress/const.js +++ b/test/compress/const.js @@ -438,7 +438,7 @@ catch_ie8_1: { } expect: { try {} catch (a) {} - console.log(function a() { + console.log(function() { }()); } expect_stdout: "undefined" @@ -1065,3 +1065,22 @@ issue_4229: { } expect_stdout: true } + +issue_4231: { + options = { + ie8: true, + side_effects: true, + } + input: { + typeof a == 0; + console.log(typeof function a() { + const a = 0; + }); + } + expect: { + console.log(typeof function a() { + const a = 0; + }); + } + expect_stdout: "function" +} |