Skip to main content

get_or_create_proxy_object

Function get_or_create_proxy_object 

Source
pub unsafe fn get_or_create_proxy_object(
    cx: &mut JSContext,
    obj: Handle<'_, *mut JSObject>,
    is_proxy: bool,
    slot: u32,
    handler: *const c_void,
    owner: *const c_void,
    proxy: MutableHandle<'_, *mut JSObject>,
) -> bool
Expand description

ยงSafety

handler and owner pointers must outlive the created proxy object.