diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-18 21:04:54 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-18 21:04:54 -0700 |
commit | 544b922fd0059996989cc8aa12237d97bf5125bb (patch) | |
tree | 15a838ca3a9618af9c3b2beff6d3bbf4fd057aba /emscripten.py | |
parent | c0074e01ac06a66faf3e9d91f1cecb4ff02c7ee9 (diff) |
throw in longjmp, do not overwrite previous throw data in setThrew, and enable test_longjmp in asm
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 6 |
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) { |