Function JS_DefineFunctionById

Source
pub unsafe extern "C" fn JS_DefineFunctionById(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    id: Handle<PropertyKey>,
    call: Option<unsafe extern "C" fn(*mut JSContext, u32, *mut Value) -> bool>,
    nargs: u32,
    attrs: u32,
) -> *mut JSFunction