diff options
Diffstat (limited to 'test/compress/const.js')
-rw-r--r-- | test/compress/const.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/const.js b/test/compress/const.js index 4411cbf8..27c55ddb 100644 --- a/test/compress/const.js +++ b/test/compress/const.js @@ -1009,3 +1009,26 @@ issue_4212_2: { } expect_stdout: true } + +issue_4216: { + options = { + collapse_vars: true, + conditionals: true, + dead_code: true, + evaluate: true, + } + input: { + if (a = 0) { + const a = 0; + } + console.log(typeof a); + } + expect: { + a = 0; + { + const a = void 0; + } + console.log(typeof a); + } + expect_stdout: true +} |