|
@@ -627,9 +627,14 @@ implementation
|
|
|
hlcg.g_exception_reason_save_const(current_asmdata.CurrAsmList,exceptionreasontype,0,excepttemps.reasonbuf);
|
|
|
current_asmdata.CurrAsmList.concat(taicpu.op_const(a_br,4)); // jump to the 'finally' section
|
|
|
|
|
|
+ current_asmdata.CurrAsmList.concat(taicpu.op_none(a_catch));
|
|
|
+ thlcgwasm(hlcg).decblock;
|
|
|
+ { exceptionreason:=1 (exception) }
|
|
|
+ hlcg.g_exception_reason_save_const(current_asmdata.CurrAsmList,exceptionreasontype,1,excepttemps.reasonbuf);
|
|
|
+ current_asmdata.CurrAsmList.concat(taicpu.op_const(a_br,3)); // jump to the 'finally' section
|
|
|
+
|
|
|
{ exit the inner 'try..end_try' block }
|
|
|
current_asmdata.CurrAsmList.concat(taicpu.op_none(a_end_try));
|
|
|
- thlcgwasm(hlcg).decblock;
|
|
|
|
|
|
{ exit the 'continue' block }
|
|
|
current_asmdata.CurrAsmList.concat(taicpu.op_none(a_end_block));
|