script_bindings::utils

Function get_proto_or_iface_array

Source
pub(crate) unsafe fn get_proto_or_iface_array(
    global: *mut JSObject,
) -> *mut ProtoOrIfaceArray
Expand description

Returns the ProtoOrIfaceArray for the given global object. Fails if global is not a DOM global object.

§Safety

global must point to a valid, non-null JS object.