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/issue-1733.js | |
parent | 604caa09e7181791621db6c96b92cb8ecc7ace24 (diff) | |
download | tracifyjs-f40f5eb228aa576f2555b5aaa20f3a676aaad147.tar.gz tracifyjs-f40f5eb228aa576f2555b5aaa20f3a676aaad147.zip |
improve `mangle` (#2948)
Diffstat (limited to 'test/compress/issue-1733.js')
-rw-r--r-- | test/compress/issue-1733.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compress/issue-1733.js b/test/compress/issue-1733.js index f1e576c7..15c4a899 100644 --- a/test/compress/issue-1733.js +++ b/test/compress/issue-1733.js @@ -15,7 +15,7 @@ function_iife_catch: { } f(); } - expect_exact: "function f(o){!function(){try{throw 0}catch(c){var o=1;console.log(c,o)}}()}f();" + expect_exact: "function f(o){!function(){try{throw 0}catch(o){var c=1;console.log(o,c)}}()}f();" expect_stdout: "0 1" } @@ -36,7 +36,7 @@ function_iife_catch_ie8: { } f(); } - expect_exact: "function f(o){!function(){try{throw 0}catch(o){var c=1;console.log(o,c)}}()}f();" + expect_exact: "function f(c){!function(){try{throw 0}catch(c){var o=1;console.log(c,o)}}()}f();" expect_stdout: "0 1" } @@ -61,7 +61,7 @@ function_catch_catch: { } f(); } - expect_exact: "var o=0;function f(){try{throw 1}catch(c){try{throw 2}catch(o){var o=3;console.log(o)}}console.log(o)}f();" + expect_exact: "var o=0;function f(){try{throw 1}catch(o){try{throw 2}catch(c){var c=3;console.log(c)}}console.log(c)}f();" expect_stdout: [ "3", "undefined", |