aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-18 21:04:54 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-18 21:04:54 -0700
commit544b922fd0059996989cc8aa12237d97bf5125bb (patch)
tree15a838ca3a9618af9c3b2beff6d3bbf4fd057aba /src
parentc0074e01ac06a66faf3e9d91f1cecb4ff02c7ee9 (diff)
throw in longjmp, do not overwrite previous throw data in setThrew, and enable test_longjmp in asm
Diffstat (limited to 'src')
-rw-r--r--src/library.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 95aa2ede..f9ed3ee6 100644
--- a/src/library.js
+++ b/src/library.js
@@ -6281,6 +6281,7 @@ LibraryManager.library = {
longjmp: function(env, value) {
#if ASM_JS
asm.setThrew(env, value || 1);
+ throw 'longjmp';
#else
throw { longjmp: true, id: {{{ makeGetValue('env', '0', 'i32') }}}, value: value || 1 };
#endif