Function mozjs::rust::wrappers::JS_InitClass

source ยท
pub unsafe fn JS_InitClass(
    cx: *mut JSContext,
    obj: HandleObject<'_>,
    protoClass: *const JSClass,
    protoProto: HandleObject<'_>,
    name: *const c_char,
    constructor: JSNative,
    nargs: c_uint,
    ps: *const JSPropertySpec,
    fs: *const JSFunctionSpec,
    static_ps: *const JSPropertySpec,
    static_fs: *const JSFunctionSpec,
) -> *mut JSObject