Function mozjs_sys::jsapi::JS_NewObjectForConstructor
source · pub unsafe extern "C" fn JS_NewObjectForConstructor(
cx: *mut JSContext,
clasp: *const JSClass,
args: *const CallArgs,
) -> *mut JSObject
Expand description
A constructor can request that the JS engine create a default new ‘this’ object of the given class, using the callee to determine parentage and [[Prototype]].