mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
LibWeb: Add missing spec links for pipe_through() and pipe_to()
This commit is contained in:
parent
1d44df74f7
commit
4569b997a6
Notes:
github-actions[bot]
2024-11-24 10:13:03 +00:00
Author: https://github.com/kennethmyhra
Commit: 4569b997a6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2532
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,7 @@ WebIDL::ExceptionOr<ReadableStreamReader> ReadableStream::get_reader(ReadableStr
|
|||
return ReadableStreamReader { TRY(acquire_readable_stream_byob_reader(*this)) };
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#rs-pipe-through
|
||||
WebIDL::ExceptionOr<GC::Ref<ReadableStream>> ReadableStream::pipe_through(ReadableWritablePair transform, StreamPipeOptions const& options)
|
||||
{
|
||||
// 1. If ! IsReadableStreamLocked(this) is true, throw a TypeError exception.
|
||||
|
@ -141,6 +142,7 @@ WebIDL::ExceptionOr<GC::Ref<ReadableStream>> ReadableStream::pipe_through(Readab
|
|||
return GC::Ref { *transform.readable };
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#rs-pipe-to
|
||||
GC::Ref<WebIDL::Promise> ReadableStream::pipe_to(WritableStream& destination, StreamPipeOptions const& options)
|
||||
{
|
||||
auto& realm = this->realm();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue