unsafe fn global_scope_from_global( global: *mut JSObject, cx: *mut JSContext, ) -> DomRoot<GlobalScope>
Returns the Rust global scope from a JS global object.