diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 20:39:09 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 20:39:09 -0800 |
commit | 51480ab006fe32fae1d717d70aea1147190845e5 (patch) | |
tree | 4d7e341e9b7ebc0308fd525bdc6e0a122e08dcdb /src/preamble.js | |
parent | d2f19271a1aaa96a938a3cef6d65f15e934555a0 (diff) |
rewrite setjmp code to identify, uniquely, each setjmp and match it to a longjmp. add testcase for #747, works in unoptimized builds
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 9342bf2b..0917f977 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -276,6 +276,8 @@ Module['printProfiling'] = printProfiling; //======================================== var __THREW__ = false; // Used in checking for thrown exceptions. +var setjmpId = 1; // Used in setjmp/longjmp +var setjmpLabels = {}; var ABORT = false; |