pub(crate) unsafe fn create_global_object<D: DomTypes>(
cx: JSContext,
class: &'static JSClass,
private: *const c_void,
trace: unsafe extern "C" fn(trc: *mut JSTracer, obj: *mut JSObject),
rval: MutableHandleObject<'_>,
origin: &MutableOrigin,
use_system_compartment: bool,
)
Expand description
Create a global object with the given class.