mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
05b5268061
commit
fc201927ae
7 changed files with 107 additions and 34 deletions
|
@ -233,6 +233,8 @@ pub enum Transferrable {
|
|||
MessagePort,
|
||||
/// The `ReadableStream` interface.
|
||||
ReadableStream,
|
||||
/// The `WritableStream` interface.
|
||||
WritableStream,
|
||||
}
|
||||
|
||||
impl StructuredSerializedData {
|
||||
|
@ -243,6 +245,7 @@ impl StructuredSerializedData {
|
|||
match val {
|
||||
Transferrable::MessagePort => is_field_empty(&self.ports),
|
||||
Transferrable::ReadableStream => is_field_empty(&self.ports),
|
||||
Transferrable::WritableStream => is_field_empty(&self.ports),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue