diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-10-22 15:19:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 22:19:47 +0800 |
commit | 9e40abededaae3568e6cd931268cfaa0bd0ffbc0 (patch) | |
tree | dcbc391e63e65dcfd8a62a10f6130b058b222996 /test/compress/ie8.js | |
parent | 23ca7d675f5c7bbd80571ce40b8d951831d359ad (diff) | |
download | tracifyjs-9e40abededaae3568e6cd931268cfaa0bd0ffbc0.tar.gz tracifyjs-9e40abededaae3568e6cd931268cfaa0bd0ffbc0.zip |
fix corner case in `unused` (#4236)
fixes #4235
Diffstat (limited to 'test/compress/ie8.js')
-rw-r--r-- | test/compress/ie8.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/ie8.js b/test/compress/ie8.js index f2132579..2a7dace3 100644 --- a/test/compress/ie8.js +++ b/test/compress/ie8.js @@ -2859,3 +2859,21 @@ issue_4186: { } expect_stdout: "NaN" } + +issue_4235: { + options = { + ie8: true, + unused: true, + } + input: { + try {} catch (e) {} + console.log(function e() { + var e = 0; + }()); + } + expect: { + try {} catch (e) {} + console.log(function e() {}()); + } + expect_stdout: "undefined" +} |