diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-09-21 23:49:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 23:49:41 +0100 |
commit | 0e3da27727194f6aaab5a08913008b0fc4153501 (patch) | |
tree | 5fd5326f9155b9a3b0d67eb334bfeb09c4afe828 /test | |
parent | 13cdc167a24fc49f5275b17810525f6879986304 (diff) | |
parent | 51803cdcb2a7d4e396b46b38acc1cb70152a3ad8 (diff) | |
download | tracifyjs-0e3da27727194f6aaab5a08913008b0fc4153501.tar.gz tracifyjs-0e3da27727194f6aaab5a08913008b0fc4153501.zip |
fix corner case in `merge_vars` (#4140)
fixes #4139
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/merge_vars.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/compress/merge_vars.js b/test/compress/merge_vars.js index b5b71019..559832c2 100644 --- a/test/compress/merge_vars.js +++ b/test/compress/merge_vars.js @@ -2738,3 +2738,31 @@ issue_4135: { } expect_stdout: "1 -1 undefined" } + +issue_4139: { + options = { + merge_vars: true, + toplevel: true, + } + input: { + try { + console.log; + } catch (e) { + var a, arguments = 0; + } finally { + a = typeof arguments; + console.log(a); + } + } + expect: { + try { + console.log; + } catch (e) { + var a, arguments = 0; + } finally { + a = typeof arguments; + console.log(a); + } + } + expect_stdout: "object" +} |