Skip to content

Commit e94ca36

Browse files
committed
Add a stub for _Unwind_RaiseException
1 parent b0982ef commit e94ca36

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/library.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -4052,8 +4052,19 @@ LibraryManager.library = {
40524052
return 0; // we cannot succeed
40534053
},
40544054

4055+
_Unwind_RaiseException__deps: ['__cxa_find_matching_catch', '$EXCEPTIONS'],
40554056
_Unwind_RaiseException: function(ex) {
4056-
abort('Unwind_RaiseException');
4057+
// TODO
4058+
Module.printErr('Warning: _Unwind_RaiseException is not correctly implemented');
4059+
EXCEPTIONS.infos[ex] = {
4060+
ptr: ex,
4061+
adjusted: ex,
4062+
type: null,
4063+
destructor: null,
4064+
refcount: 0
4065+
};
4066+
EXCEPTIONS.last = ex;
4067+
{{{ makeThrow('ex') }}}
40574068
},
40584069

40594070
_Unwind_DeleteException: function(ex) {

0 commit comments

Comments
 (0)