pub type JSPreWrapCallback = Option<unsafe extern "C" fn(arg1: *mut JSContext, arg2: HandleObject, arg3: HandleObject, arg4: HandleObject, arg5: HandleObject, arg6: MutableHandleObject)>;
Expand description
Callback used by the wrap hook to ask the embedding to prepare an object for wrapping in a context. This might include unwrapping other wrappers or even finding a more suitable object for the new compartment. If |origObj| is non-null, then it is the original object we are going to swap into during a transplant.
Aliased Type§
pub enum JSPreWrapCallback {
None,
Some(unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<*mut JSObject>, Handle<*mut JSObject>, Handle<*mut JSObject>, MutableHandle<*mut JSObject>)),
}