pub fn enter_auto_realm<'cx, D>( cx: &'cx mut JSContext, object: &impl DomObject, ) -> AutoRealm<'cx>where D: DomTypes,