Files
servo/components/script/dom/bindings/import.rs
Sam f623081537 script: Pass &mut JSContext to Constructor and Wrap (#42681)
Testing: Just refactor, but should be covered by WPT
Part of #40600

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-02-17 13:15:24 +00:00

29 lines
1.0 KiB
Rust

/* 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/. */
pub(crate) mod base {
pub(crate) use std::ptr;
pub(crate) use js::context::JSContext;
#[expect(unused_imports)]
pub(crate) use js::realm::CurrentRealm;
pub(crate) use js::rust::{HandleObject, MutableHandleObject};
pub(crate) use crate::script_runtime::JSContext as SafeJSContext;
}
pub(crate) mod module {
pub(crate) use script_bindings::codegen::PrototypeList;
pub(crate) use script_bindings::conversions::IDLInterface;
pub(crate) use script_bindings::utils::DOMClass;
pub(crate) use super::base::*;
pub(crate) use crate::dom::bindings::iterable::IterableIterator;
pub(crate) use crate::dom::bindings::reflector::{
DomObjectIteratorWrap, DomObjectWrap, Reflector,
};
pub(crate) use crate::dom::bindings::root::{Dom, Root};
pub(crate) use crate::dom::bindings::weakref::WeakReferenceable;
}