Function chakracore_sys::JsCreateFunction [] [src]

pub unsafe extern "system" fn JsCreateFunction(
    nativeFunction: JsNativeFunction,
    callbackState: *mut c_void,
    function: *mut JsValueRef
) -> JsErrorCode

Creates a new JavaScript function. Requires an active script context. 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.