Function mozjs::jsapi::JS_LinkConstructorAndPrototype

source ยท
pub unsafe extern "C" fn JS_LinkConstructorAndPrototype(
    cx: *mut JSContext,
    ctor: Handle<*mut JSObject>,
    proto: Handle<*mut JSObject>,
) -> bool
Expand description

Set up ctor.prototype = proto and proto.constructor = ctor with the right property flags.