/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.0.2
components/script/realms.rs
11 строк
489 B
Josh Matthews
Move generated bindings to script_bindings (#36323)
04 апр 2025, 09:45
Не верифицирован
04 апр 2025, 09:45
b4079b3
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ use js::jsapi::JSAutoRealm; pub(crate) use script_bindings::realms::{AlreadyInRealm, InRealm}; use script_bindings::reflector::DomObject; pub(crate) fn enter_realm(object: &impl DomObject) -> JSAutoRealm { script_bindings::realms::enter_realm::<crate::DomTypeHolder>(object) }