Explorar el Código

+ added compiler internal error when encountering certain unexpected wasm instructions (indicating improper nesting)

Nikolay Nikolov hace 1 año
padre
commit
089e7ca6c8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      compiler/wasm32/aasmcpu.pas

+ 2 - 0
compiler/wasm32/aasmcpu.pas

@@ -2534,6 +2534,8 @@ uses
                   result:=tai_wasmstruc_loop.create_from(taicpu(result),srclist);
                 a_try:
                   result:=tai_wasmstruc_try.create_from(srclist);
+                a_else,a_end_if,a_end_block,a_end_loop,a_end_try,a_catch,a_catch_all:
+                  internalerror(2023100503);
                 else
                   ;
               end;