Function script::dom::bindings::import::module::jsapi::JS_NewObjectWithoutMetadata

source ยท
pub unsafe extern "C" fn JS_NewObjectWithoutMetadata(
    cx: *mut JSContext,
    clasp: *const JSClass,
    proto: Handle<*mut JSObject>,
) -> *mut JSObject
Expand description

Allocate an object in exactly the same way as JS_NewObjectWithGivenProto, but without invoking the metadata callback on it. This allows creation of internal bookkeeping objects that are guaranteed to not have metadata attached to them.