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