Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions core/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ boa_engine.workspace = true
boa_gc.workspace = true
boa_wintertc.workspace = true
bus = { workspace = true, optional = true }
bytemuck.workspace = true
either = { workspace = true, optional = true }
futures = "0.3.32"
futures-lite.workspace = true
Expand All @@ -28,7 +27,6 @@ url = { workspace = true, optional = true }
[dev-dependencies]
indoc.workspace = true
rstest.workspace = true
test-case.workspace = true
textwrap.workspace = true
temp-env.workspace = true

Expand All @@ -49,7 +47,7 @@ default = [
]

all = ["default", "reqwest-blocking"]
url = ["dep:url"]
url = ["boa_wintertc/url"]
fetch = [
"dep:url",
"dep:either",
Expand Down
236 changes: 0 additions & 236 deletions core/runtime/src/abort/mod.rs

This file was deleted.

6 changes: 3 additions & 3 deletions core/runtime/src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct EncodingExtension;

impl RuntimeExtension for EncodingExtension {
fn register(self, realm: Option<Realm>, context: &mut Context) -> JsResult<()> {
crate::text::register(realm, context)?;
boa_wintertc::encoding::register(realm, context)?;
Ok(())
}
}
Expand Down Expand Up @@ -76,7 +76,7 @@ pub struct UrlExtension;
#[cfg(feature = "url")]
impl RuntimeExtension for UrlExtension {
fn register(self, realm: Option<Realm>, context: &mut Context) -> JsResult<()> {
crate::url::Url::register(realm, context)
boa_wintertc::url::Url::register(realm, context)
}
}

Expand Down Expand Up @@ -129,7 +129,7 @@ pub struct AbortControllerExtension;
#[cfg(feature = "fetch")]
impl RuntimeExtension for AbortControllerExtension {
fn register(self, realm: Option<Realm>, context: &mut Context) -> JsResult<()> {
crate::abort::register(realm, context)
boa_wintertc::abort::register(realm, context)
}
}

Expand Down
14 changes: 10 additions & 4 deletions core/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,15 @@
//! [`boa_wintertc`] crate. They are re-exported from `boa_runtime` so existing users keep a single,
//! unchanged import path:
//!
//! - [`abort`](abort/index.html) — `AbortController` and `AbortSignal` (requires the `fetch` feature)
//! - [`base64`] — `atob` and `btoa`
//! - [`clone`] — `structuredClone`
//! - [`console`] — the `console` object
//! - [`microtask`] — `queueMicrotask`
//! - [`interval`] — the timer APIs (`setTimeout`, `clearTimeout`, `setInterval`, `clearInterval`),
//! kept under their historical `interval` name
//! - [`microtask`] — `queueMicrotask`
//! - [`text`] — `TextEncoder` and `TextDecoder`, kept under their historical `text` name
//! - [`url`](url/index.html) — the `URL` class (requires the `url` feature)
//!
//! The [`store`] module holds the serialization core backing `structuredClone`. See each
//! re-exported module for its full API documentation.
Expand Down Expand Up @@ -131,7 +134,8 @@ pub use boa_wintertc::base64;
pub use console::{Console, ConsoleState, DefaultLogger, Logger, NullLogger};

#[cfg(feature = "fetch")]
pub mod abort;
#[doc(inline)]
pub use boa_wintertc::abort;

#[doc(inline)]
pub use boa_wintertc::clone;
Expand All @@ -152,9 +156,11 @@ pub use boa_wintertc::store;
/// Support for the `$262` test262 harness object.
#[cfg(feature = "test262")]
pub mod test262;
pub mod text;
#[doc(inline)]
pub use boa_wintertc::encoding as text;
#[cfg(feature = "url")]
pub mod url;
#[doc(inline)]
pub use boa_wintertc::url;

#[cfg(feature = "process")]
use crate::extensions::ProcessExtension;
Expand Down
Loading
Loading