* longjmp in fpc_reraise changed to a throw instruction intrinsic in wasm native exceptions mode

This commit is contained in:
Nikolay Nikolov 2021-09-28 04:02:52 +03:00
parent 0c3e179652
commit 3836b0be04

View File

@ -245,7 +245,8 @@ begin
// If _ExceptAddrStack=Nil then
// DoUnHandledException;
ExceptObjectStack^.refcount := 0;
longjmp(_ExceptAddrStack^.Buf^,FPC_Exception);
// longjmp(_ExceptAddrStack^.Buf^,FPC_Exception);
fpc_wasm32_throw_fpcexception;
end;
{$endif FPC_SYSTEM_HAS_RERAISE}