aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-24 11:38:08 -0700
committeralon@honor <none@none>2010-10-24 11:38:08 -0700
commitfa7440b389910fefe7b3ea713a21b8a6b44daa6f (patch)
tree995a000499b75bef6a72bc2d97d778cfc6abb373 /src/jsifier.js
parent6cc0726f3cac4473eb0ac8bfadaf429a14d472c4 (diff)
add nonvirtual part to polymorph test; fails in clang
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 4826e035..8880e3e8 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -584,7 +584,7 @@ function JSify(data) {
var ret = '(function() { try { __THREW__ = false; return '
+ makeFunctionCall(item.ident, item.params, item.funcData) + ' '
+ '} catch(e) { '
- + '__THREW__ = true; '
+ + 'if (ABORT) throw e; __THREW__ = true; '
+ (EXCEPTION_DEBUG ? 'print("Exception: " + e + " : " + (new Error().stack)); ' : '')
+ '} })(); if (!__THREW__) { ' + makeBranch(item.toLabel, item.currLabelId)
+ ' } else { ' + makeBranch(item.unwindLabel, item.currLabelId) + ' }';