feat: 统一内部报错模型异常抛出风格

This commit is contained in:
爱特每羊队
2026-06-07 22:10:20 +08:00
parent bd7e4f78c2
commit f95841b3a1
4 changed files with 103 additions and 40 deletions
+1 -2
View File
@@ -462,8 +462,7 @@ impl Compiler {
ctx.label_map.insert(finally_label, finally_label_pc);
if let Some(fb_pos) = try_finally_begin_pos {
let offset = finally_label_pc as isize - (fb_pos as isize);
ctx.bytecode[fb_pos] =
opcode::encode_try_finally_begin(offset as i16);
ctx.bytecode[fb_pos] = opcode::encode_try_finally_begin(offset as i16);
}
if let Some(jmp_pos) = jmp_skip_pos {