aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py
index 0fa6ac30..6d384a96 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -514,8 +514,10 @@ var asm = (function(global, env, buffer) {
function setThrew(threw, value) {
threw = threw|0;
value = value|0;
- __THREW__ = threw;
- threwValue = value;
+ if ((__THREW__|0) == 0) {
+ __THREW__ = threw;
+ threwValue = value;
+ }
}
''' + ''.join(['''
function setTempRet%d(value) {