mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 11:11:11 +08:00
style: 自动格式化
This commit is contained in:
@@ -3,7 +3,7 @@ use oxide_kernel::shape_forge::EMPTY_SHAPE_ID;
|
||||
use oxide_types::object::{JsObject, NativeFnPtr, PropAttributes};
|
||||
use oxide_types::value::JsValue;
|
||||
|
||||
use super::{BindEnv, kernel_env};
|
||||
use super::{kernel_env, BindEnv};
|
||||
|
||||
fn bind_error_subtype_constructor(
|
||||
env: BindEnv<'_>, global: &mut JsObject, name: &str, proto_ptr: *mut JsObject, ctor_fn: *const (), arg_count: u8,
|
||||
|
||||
@@ -29,7 +29,11 @@ fn bind_labeled_method(
|
||||
// SAFETY: func 是转成 *const () 的 NativeFn 函数项指针。
|
||||
let fn_ptr = unsafe { oxide_types::object::NativeFnPtr::from_raw(func) };
|
||||
let _ = oxide_kernel::builtin::BuiltinWorld::bind_method_labeled_static(
|
||||
oxide_kernel::builtin::BindEnv { world, shape_forge, string_forge },
|
||||
oxide_kernel::builtin::BindEnv {
|
||||
world,
|
||||
shape_forge,
|
||||
string_forge,
|
||||
},
|
||||
proto,
|
||||
name,
|
||||
fn_ptr,
|
||||
|
||||
Reference in New Issue
Block a user