mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
fix: 修复字节码函数调用跳过扩展字执行异常问题
This commit is contained in:
@@ -1029,9 +1029,7 @@ impl Compiler {
|
||||
_ => OpCode::CALL,
|
||||
};
|
||||
ctx.emit(opcode::encode(op, callee_reg, this_reg, first_arg_reg));
|
||||
if matches!(op, OpCode::CALL_NATIVE) {
|
||||
ctx.emit(arg_regs.len() as u32);
|
||||
}
|
||||
ctx.emit(arg_regs.len() as u32);
|
||||
// Copy result from regs[0] into a dedicated register so multiple
|
||||
// call expressions don't overwrite each other.
|
||||
let result_reg = ctx.alloc_reg();
|
||||
|
||||
Reference in New Issue
Block a user