From 4569b997a612cf5f86c56457ed67e70ca31fdb45 Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Fri, 22 Nov 2024 12:19:37 +0100 Subject: [PATCH] LibWeb: Add missing spec links for pipe_through() and pipe_to() --- Libraries/LibWeb/Streams/ReadableStream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibWeb/Streams/ReadableStream.cpp b/Libraries/LibWeb/Streams/ReadableStream.cpp index a18c9300c8b..fc19a119d90 100644 --- a/Libraries/LibWeb/Streams/ReadableStream.cpp +++ b/Libraries/LibWeb/Streams/ReadableStream.cpp @@ -118,6 +118,7 @@ WebIDL::ExceptionOr ReadableStream::get_reader(ReadableStr return ReadableStreamReader { TRY(acquire_readable_stream_byob_reader(*this)) }; } +// https://streams.spec.whatwg.org/#rs-pipe-through WebIDL::ExceptionOr> ReadableStream::pipe_through(ReadableWritablePair transform, StreamPipeOptions const& options) { // 1. If ! IsReadableStreamLocked(this) is true, throw a TypeError exception. @@ -141,6 +142,7 @@ WebIDL::ExceptionOr> ReadableStream::pipe_through(Readab return GC::Ref { *transform.readable }; } +// https://streams.spec.whatwg.org/#rs-pipe-to GC::Ref ReadableStream::pipe_to(WritableStream& destination, StreamPipeOptions const& options) { auto& realm = this->realm();