mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
fix: 修复寄存器空值导致访问越界问题
This commit is contained in:
@@ -486,6 +486,7 @@ impl Vm {
|
||||
let saved_this = self.regs[254];
|
||||
let saved_callee = self.regs[253];
|
||||
self.regs[253] = receiver;
|
||||
self.regs[254] = callee;
|
||||
for (idx, arg) in args.iter().enumerate() {
|
||||
self.regs[240 + idx] = *arg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user