refactor: 退役 new_array 死参数与三十四处调用点

This commit is contained in:
2026-10-03 04:32:20 +00:00
parent a4d70a8bfe
commit 214494d3d5
18 changed files with 38 additions and 111 deletions
+2 -6
View File
@@ -1682,12 +1682,8 @@ mod tests {
fn new_array_val(vm: &mut Vm, n: u32) -> JsValue {
let proto = vm.session.builtin_world().array_proto.as_ptr() as *mut JsObject;
let arr = JsObject::new_array(
oxide_kernel::shape_forge::EMPTY_SHAPE_ID,
JsValue::from_js_object(proto),
n as usize,
vm.epoch.bump(),
);
let arr =
JsObject::new_array(oxide_kernel::shape_forge::EMPTY_SHAPE_ID, JsValue::from_js_object(proto), n as usize);
JsValue::object(vm.alloc_object(arr) as *mut u8)
}