Browse Source

+ introduced taiwstype.aitws_try_table

Nikolay Nikolov 2 days ago
parent
commit
a9b5a7df2d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      compiler/wasm32/aasmcpu.pas

+ 3 - 2
compiler/wasm32/aasmcpu.pas

@@ -192,7 +192,8 @@ uses
         aitws_block,
         aitws_block,
         aitws_loop,
         aitws_loop,
         aitws_legacy_try_delegate,
         aitws_legacy_try_delegate,
-        aitws_legacy_try_catch
+        aitws_legacy_try_catch,
+        aitws_try_table
       );
       );
 
 
       { taicpu_wasm_structured_instruction }
       { taicpu_wasm_structured_instruction }
@@ -1785,7 +1786,7 @@ uses
         Done: Boolean;
         Done: Boolean;
         p: tai;
         p: tai;
       begin
       begin
-        wstyp:=aitws_block;
+        wstyp:=aitws_try_table;
         inherited Create;
         inherited Create;
         if assigned(a_try_table_instr.Previous) or assigned(a_try_table_instr.Next) then
         if assigned(a_try_table_instr.Previous) or assigned(a_try_table_instr.Next) then
           internalerror(2023100304);
           internalerror(2023100304);