Type Alias mozjs::jsapi::JSFunToStringOp
source · pub type JSFunToStringOp = Option<unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: bool) -> *mut JSString>;
Expand description
The type of ObjectOps::funToString. This callback allows an object to provide a custom string to use when Function.prototype.toString is invoked on that object. A null return value means OOM.
Aliased Type§
enum JSFunToStringOp {
None,
Some(unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: bool) -> *mut JSString),
}