Function js::jsapi::JS_NewObjectForConstructor [] [src]

pub unsafe extern "C" fn JS_NewObjectForConstructor(
    cx: *mut JSContext,
    clasp: *const JSClass,
    args: *const CallArgs
) -> *mut JSObject

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]].