mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
feat: 异常与 return 穿越释放资源,dispose_count 门控
This commit is contained in:
@@ -316,7 +316,7 @@ impl Emitter {
|
||||
module.insts.extend(field_ctx.insts);
|
||||
module.constants = field_ctx.constants;
|
||||
module.n_registers = field_ctx.max_regs.max(1);
|
||||
module.insts.push(Inst::ret(Operand::Reg(undef_reg), 0, 0));
|
||||
module.insts.push(Inst::ret(Operand::Reg(undef_reg), 0, 0, 0));
|
||||
}
|
||||
module
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user