feat: 增加 CreateClosure 字节码,函数字面量每次执行创建新闭包

This commit is contained in:
爱特每羊队
2026-06-25 10:16:32 +08:00
parent 12f66ae675
commit 5007e7af7c
8 changed files with 29 additions and 13 deletions
+1 -2
View File
@@ -158,8 +158,7 @@ impl Vm {
}
}
let global_ptr = self.session.global_object().as_ptr() as *mut JsObject;
self.regs[254] = JsValue::from_js_object(global_ptr);
self.regs[254] = JsValue::undefined();
self.dispatch()
}