diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-11-21 02:30:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 10:30:46 +0800 |
commit | 645d5a348bced192907176876b9e46c942e7d0ae (patch) | |
tree | ff51af3a2a307ddc6186ccc857ebbc5250a5e3b5 /test | |
parent | cf120c7cea2721626caa67767d720431becf7f62 (diff) | |
download | tracifyjs-645d5a348bced192907176876b9e46c942e7d0ae.tar.gz tracifyjs-645d5a348bced192907176876b9e46c942e7d0ae.zip |
workaround Safari quirks (#4314)
fixes #1753
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/let.js | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/compress/let.js b/test/compress/let.js index 76641c3f..fc323320 100644 --- a/test/compress/let.js +++ b/test/compress/let.js @@ -1186,3 +1186,45 @@ issue_4305_2: { expect_stdout: true node_version: ">=4" } + +issue_1753: { + mangle = { + toplevel: false, + webkit: true, + } + input: { + "use strict"; + let l = null; + for (let i = 0; i < 1; i++) + console.log(i); + } + expect: { + "use strict"; + let l = null; + for (let i = 0; i < 1; i++) + console.log(i); + } + expect_stdout: "0" + node_version: ">=4" +} + +issue_1753_toplevel: { + mangle = { + toplevel: true, + webkit: true, + } + input: { + "use strict"; + let l = null; + for (let i = 0; i < 1; i++) + console.log(i); + } + expect: { + "use strict"; + let l = null; + for (let e = 0; e < 1; e++) + console.log(e); + } + expect_stdout: "0" + node_version: ">=4" +} |