Type Alias mozjs::jsapi::JS::ScriptPrivateReferenceHook
source · pub type ScriptPrivateReferenceHook = Option<unsafe extern "C" fn(_: *const Value)>;
Expand description
Hooks called when references to a script private value are created or destroyed. This allows use of a reference counted object as the script private.
Aliased Type§
enum ScriptPrivateReferenceHook {
None,
Some(unsafe extern "C" fn(_: *const Value)),
}