浏览代码

* use a_throw instead of a_legacy_throw in exnref exceptions mode

Nikolay Nikolov 1 周之前
父节点
当前提交
b1343eca01
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/wasm32/nwasmflw.pas

+ 1 - 1
compiler/wasm32/nwasmflw.pas

@@ -1287,7 +1287,7 @@ implementation
           thlcgwasm(hlcg).a_cmp_const_reg_stack(current_asmdata.CurrAsmList,exceptionreasontype,OC_EQ,reason,reasonreg);
           current_asmdata.CurrAsmList.concat(taicpu.op_none(a_if));
           thlcgwasm(hlcg).decstack(current_asmdata.CurrAsmList,1);
-          current_asmdata.CurrAsmList.Concat(taicpu.op_sym(a_legacy_throw,current_asmdata.WeakRefAsmSymbol(FPC_EXCEPTION_TAG_SYM,AT_WASM_EXCEPTION_TAG)));
+          current_asmdata.CurrAsmList.Concat(taicpu.op_sym(a_throw,current_asmdata.WeakRefAsmSymbol(FPC_EXCEPTION_TAG_SYM,AT_WASM_EXCEPTION_TAG)));
           current_asmdata.CurrAsmList.concat(taicpu.op_none(a_end_if));
         end;