Function mozjs::jsapi::JS_NewFunction

source ยท
pub unsafe extern "C" fn JS_NewFunction(
    cx: *mut JSContext,
    call: Option<unsafe extern "C" fn(_: *mut JSContext, _: u32, _: *mut Value) -> bool>,
    nargs: u32,
    flags: u32,
    name: *const i8,
) -> *mut JSFunction