mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
feat: 统一内部报错模型异常抛出风格
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user