Function mozjs_sys::jsapi::JS_DefineFunction

source ยท
pub unsafe extern "C" fn JS_DefineFunction(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    name: *const c_char,
    call: JSNative,
    nargs: c_uint,
    attrs: c_uint,
) -> *mut JSFunction