pub unsafe extern "C" fn JS_NewObjectWithGivenProto(
cx: *mut JSContext,
clasp: *const JSClass,
proto: Handle<*mut JSObject>,
) -> *mut JSObject
Expand description
Unlike JS_NewObject, JS_NewObjectWithGivenProto does not compute a default
proto. If proto is nullptr, the JS object will have null
as [[Prototype]].