aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-25 10:15:15 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-25 10:15:15 -0700
commit70d8a4764d6983fdaaeb64bcec52515048194a09 (patch)
tree46101f8ed78f1602b44158b0ac60acfbcbb31b94
parentba658e862ef48eae7adc40f1fbcccf47f0530e5d (diff)
do not emit resumeException when exceptions are disabled
-rw-r--r--src/jsifier.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 2c83d036..17e8111b 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1160,6 +1160,7 @@ function JSify(data, functionsOnly, givenFunctions) {
return ret + ';';
});
makeFuncLineActor('resume', function(item) {
+ if (DISABLE_EXCEPTION_CATCHING) return 'abort()';
if (item.ident == 0) {
// No exception to resume, so we can just bail.
// This is related to issue #917 and http://llvm.org/PR15518