Function script::dom::bindings::interface::create_global_object

source ยท
pub unsafe fn create_global_object(
    cx: JSContext,
    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.