pub type JSFunToStringOp = Option<unsafe extern "C" fn(cx: *mut JSContext, obj: HandleObject, isToSource: 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§
pub enum JSFunToStringOp {
None,
Some(unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, bool) -> *mut JSString),
}