Function global_scope_from_global

Source
unsafe fn global_scope_from_global(
    global: *mut JSObject,
    cx: *mut JSContext,
) -> DomRoot<GlobalScope>
Expand description

Returns the Rust global scope from a JS global object.