diff options
author | max99x <max99x@gmail.com> | 2011-09-13 06:56:02 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-09-13 06:56:02 +0300 |
commit | 2bb506bccec7f0e56c7763a81e2a8784325cd7cb (patch) | |
tree | 3fe18fb545ea47a9ae5503ea24f03fb8681ff619 | |
parent | c5e5c90cd111c08b3d91d1bc89ba7d33a308cbc7 (diff) |
Preventing genuine JS errors from being caught by C++ handlers.
-rw-r--r-- | src/jsifier.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 1fd4a790..a9b66cd2 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -732,6 +732,7 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { var ret = '(function() { try { __THREW__ = false; return ' + call_ + ' ' + '} catch(e) { ' + + 'if (typeof e != "number") throw e; ' + 'if (ABORT) throw e; __THREW__ = true; ' + (EXCEPTION_DEBUG ? 'print("Exception: " + e + ", currently at: " + (new Error().stack)); ' : '') + 'return null } })(); if (!__THREW__) { ' + branch |