pub type JSPreWrapCallback = Option<unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: Handle<*mut JSObject>, _: Handle<*mut JSObject>, _: Handle<*mut JSObject>, _: MutableHandle<*mut JSObject>)>;
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§
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>)),
}