Streams: make writable streams transferrable (#36588)

Making writable streams transferrable, part of
https://github.com/servo/servo/issues/34676

Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
Gregory Terzian 2025-04-18 16:33:36 +08:00 committed by GitHub
parent 05b5268061
commit fc201927ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 107 additions and 34 deletions

View file

@ -845,7 +845,7 @@ impl ReadableStream {
}
#[cfg_attr(crown, allow(crown::unrooted_must_root))]
fn new_with_proto(
pub(crate) fn new_with_proto(
global: &GlobalScope,
proto: Option<SafeHandleObject>,
can_gc: CanGc,
@ -1619,7 +1619,7 @@ impl ReadableStream {
/// <https://streams.spec.whatwg.org/#readable-stream-pipe-to>
#[allow(clippy::too_many_arguments)]
fn pipe_to(
pub(crate) fn pipe_to(
&self,
cx: SafeJSContext,
global: &GlobalScope,
@ -1782,7 +1782,7 @@ impl ReadableStream {
}
/// <https://streams.spec.whatwg.org/#abstract-opdef-setupcrossrealmtransformreadable>
fn setup_cross_realm_transform_readable(
pub(crate) fn setup_cross_realm_transform_readable(
&self,
cx: SafeJSContext,
port: &MessagePort,