瀏覽代碼

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

Nikolay Nikolov 3 年之前
父節點
當前提交
3836b0be04
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      rtl/wasm32/except_native.inc

+ 2 - 1
rtl/wasm32/except_native.inc

@@ -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}