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

This commit is contained in:
2026-06-25 10:16:32 +08:00
parent d7bc6a9b4e
commit c378b92d1a
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()
}