aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-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