diff options
author | Josh Matthews <josh@joshmatthews.net> | 2024-12-06 02:34:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 07:34:24 +0000 |
commit | 3515b83a95cb65da30c1e3988f7a47f79fd7b9bd (patch) | |
tree | 861d73bb4464f88bfe124460a81f9e4b231b346f /components/script/dom/bindings/import.rs | |
parent | faefed9869d3e2718cb33fa7e0e1f6443f81c814 (diff) | |
download | servo-3515b83a95cb65da30c1e3988f7a47f79fd7b9bd.tar.gz servo-3515b83a95cb65da30c1e3988f7a47f79fd7b9bd.zip |
Create two-phase initialization for generated JS engine bindings (#34366)
* script: Generate a runtime initialization for static JS binding information.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* script: Replace dummy static initializers with OnceLock.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* script: Fix clippy warnings.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* script: Only initialize statics for DOM interfaces with interface objects.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* script: Remove one unnecessary Box::leak usage.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Tidy.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* script: Hide thread-unsafe OnceLock usage inside of a wrapper type.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* script: Mark ThreadUnsafeOnceLock::get unsafe.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* script: Simplify ThreadUnsafeOnceLock internals.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/script/dom/bindings/import.rs')
-rw-r--r-- | components/script/dom/bindings/import.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/bindings/import.rs b/components/script/dom/bindings/import.rs index c4c7a460ca9..0d9f0d70fdf 100644 --- a/components/script/dom/bindings/import.rs +++ b/components/script/dom/bindings/import.rs @@ -34,11 +34,14 @@ pub mod base { pub use crate::dom::bindings::error::Error::JSFailed; pub use crate::dom::bindings::error::{throw_dom_exception, Fallible}; pub use crate::dom::bindings::num::Finite; + pub use crate::dom::bindings::proxyhandler::CrossOriginProperties; pub use crate::dom::bindings::reflector::DomObject; pub use crate::dom::bindings::root::DomRoot; pub use crate::dom::bindings::str::{ByteString, DOMString, USVString}; pub use crate::dom::bindings::trace::RootedTraceableBox; - pub use crate::dom::bindings::utils::{get_dictionary_property, set_dictionary_property}; + pub use crate::dom::bindings::utils::{ + get_dictionary_property, set_dictionary_property, ThreadUnsafeOnceLock, + }; pub use crate::dom::globalscope::GlobalScope; pub use crate::script_runtime::JSContext as SafeJSContext; } |