diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/const.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/compress/const.js b/test/compress/const.js index d7731005..58c1a304 100644 --- a/test/compress/const.js +++ b/test/compress/const.js @@ -1588,3 +1588,33 @@ issue_4954_2: { expect_stdout: "PASS" node_version: ">=4" } + +issue_4960: { + mangle = {} + input: { + "use strict"; + var a; + (function() { + { + const a = console.log("PASS"); + } + try {} catch (e) { + const a = console.log("FAIL"); + } + })(); + } + expect: { + "use strict"; + var a; + (function() { + { + const o = console.log("PASS"); + } + try {} catch (c) { + const o = console.log("FAIL"); + } + })(); + } + expect_stdout: "PASS" + node_version: ">=4" +} |