diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-02-23 23:51:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 23:51:49 +0800 |
commit | f40f5eb228aa576f2555b5aaa20f3a676aaad147 (patch) | |
tree | 6a6f176ee0afc1af3a0fc68d49087322a5e289a0 /test/compress/screw-ie8.js | |
parent | 604caa09e7181791621db6c96b92cb8ecc7ace24 (diff) | |
download | tracifyjs-f40f5eb228aa576f2555b5aaa20f3a676aaad147.tar.gz tracifyjs-f40f5eb228aa576f2555b5aaa20f3a676aaad147.zip |
improve `mangle` (#2948)
Diffstat (limited to 'test/compress/screw-ie8.js')
-rw-r--r-- | test/compress/screw-ie8.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/compress/screw-ie8.js b/test/compress/screw-ie8.js index 82152b7d..b4098b8e 100644 --- a/test/compress/screw-ie8.js +++ b/test/compress/screw-ie8.js @@ -102,12 +102,12 @@ dont_screw_try_catch: { }; } expect: { - bad = function(n){ - return function(t){ + bad = function(t){ + return function(n){ try{ - n() - } catch(n) { - t(n) + t() + } catch(t) { + n(t) } } }; @@ -349,11 +349,11 @@ issue_2254_1: { try { console.log(f("PASS")); } catch (e) {} - function f(e) { + function f(t) { try { throw "FAIL"; - } catch (t) { - return e; + } catch (e) { + return t; } } } |