Function mozjs::rust::wrappers::JS_DefineFunctionById

source ยท
pub unsafe fn JS_DefineFunctionById(
    cx: *mut JSContext,
    obj: HandleObject<'_>,
    id: Handle<'_, jsid>,
    call: JSNative,
    nargs: c_uint,
    attrs: c_uint,
) -> *mut JSFunction