pub fn JS_NewObjectWithGivenProto(
cx: &mut JSContext,
clasp: Option<&'static JSClass>,
proto: Handle<'_, *mut JSObject>,
) -> *mut JSObjectExpand description
Safe wrapper around js::rust::wrappers2::JS_NewObjectWithGivenProto.
Passing None for clasp creates a plain object.