pub unsafe extern "system" fn JsCreateNamedFunction(
name: JsValueRef,
nativeFunction: JsNativeFunction,
callbackState: *mut c_void,
function: *mut JsValueRef
) -> JsErrorCode
Creates a new JavaScript function with name.
Requires an active script context.
The name of this function that will be used for diagnostics and stringification purposes.
The method to call when the function is invoked.
User provided state that will be passed back to the callback.
The new function object.
The code JsNoError if the operation succeeded, a failure code otherwise.