Function script::dom::bindings::import::module::jsapi::JS::SetScriptPrivateReferenceHooks

source ยท
pub unsafe extern "C" fn SetScriptPrivateReferenceHooks(
    rt: *mut JSRuntime,
    addRefHook: Option<unsafe extern "C" fn(_: *const Value)>,
    releaseHook: Option<unsafe extern "C" fn(_: *const Value)>,
)
Expand description

Set the script private finalize hook for the runtime to the given function.