style: 自动格式化

This commit is contained in:
2026-10-17 05:47:54 +00:00
parent 60170ac9be
commit 9ab71d0585
3 changed files with 20 additions and 20 deletions
+1 -5
View File
@@ -1022,11 +1022,7 @@ fn bind_proxy(core: &Arc<KernelCore>, session: &mut KernelSession, global: &mut
// (描述符 { f,f,t },length 先于 name 以保 own 属性序)。
let mut ctor = JsObject::new_empty(EMPTY_SHAPE_ID, JsValue::from_js_object(function_proto_ptr));
ctor.set_function(true);
configure_native_constructor(
&mut ctor,
oxide_builtins::proxy::proxy_constructor::<crate::vm::Vm> as *const (),
2,
);
configure_native_constructor(&mut ctor, oxide_builtins::proxy::proxy_constructor::<crate::vm::Vm> as *const (), 2);
let length_shape = core.shape_forge().make_shape(ctor.shape_id(), si_length);
ctor.set_shape_id(length_shape);
ctor.ensure_hash_props().push(JsValue::int(2));
+5 -1
View File
@@ -51,7 +51,11 @@ mod tests {
fn proxy_obj(target: JsValue, handler: JsValue) -> JsObject {
let mut obj = JsObject::new_empty(EMPTY_SHAPE_ID, JsValue::undefined());
obj.type_tag = JsObject::OBJ_TYPE_PROXY;
let state = Box::new(ProxyState { target, handler, revoked: false });
let state = Box::new(ProxyState {
target,
handler,
revoked: false,
});
obj.set_native_data(Box::into_raw(state) as *mut u8);
obj
}