diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-04-30 06:32:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 06:32:24 +0800 |
commit | 2ea96549c55c44935c05fcaf6c68119d0eef4c8e (patch) | |
tree | 89a3ab9e15c3b250858f9d1c590816675cf93c5f /test/compress/ie8.js | |
parent | fba008e2989de0611d144a1ec91d9eb1c9b2b479 (diff) | |
download | tracifyjs-2ea96549c55c44935c05fcaf6c68119d0eef4c8e.tar.gz tracifyjs-2ea96549c55c44935c05fcaf6c68119d0eef4c8e.zip |
unify logging functionality (#3392)
fixes #3253
fixes #3254
Diffstat (limited to 'test/compress/ie8.js')
-rw-r--r-- | test/compress/ie8.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/compress/ie8.js b/test/compress/ie8.js index f98033e0..e81e1a01 100644 --- a/test/compress/ie8.js +++ b/test/compress/ie8.js @@ -59,9 +59,9 @@ do_screw_try_catch: { input: { good = function(e){ return function(error){ - try{ + try { e() - } catch(e) { + } catch (e) { error(e) } } @@ -70,9 +70,9 @@ do_screw_try_catch: { expect: { good = function(n){ return function(t){ - try{ + try { n() - } catch(n) { + } catch (n) { t(n) } } @@ -93,9 +93,9 @@ dont_screw_try_catch: { input: { bad = function(e){ return function(error){ - try{ + try { e() - } catch(e) { + } catch (e) { error(e) } } @@ -104,9 +104,9 @@ dont_screw_try_catch: { expect: { bad = function(t){ return function(n){ - try{ + try { t() - } catch(t) { + } catch (t) { n(t) } } @@ -137,7 +137,7 @@ do_screw_try_catch_undefined: { } expect: { function a(o){ - try{ + try { throw "Stuff" } catch (o) { console.log("caught: "+o) @@ -172,7 +172,7 @@ dont_screw_try_catch_undefined: { } expect: { function a(n){ - try{ + try { throw "Stuff" } catch (undefined) { console.log("caught: " + undefined) |