LibWeb: Implement the ReadableByteStreamTee half of ReadableStreamTee

This commit is contained in:
Timothy Flynn 2024-01-28 14:21:05 -05:00 committed by Andreas Kling
commit 6981ddfe13
Notes: sideshowbarker 2024-07-17 08:34:29 +09:00
6 changed files with 785 additions and 1 deletions

View file

@ -49,6 +49,7 @@ bool readable_stream_has_default_reader(ReadableStream const&);
WebIDL::ExceptionOr<ReadableStreamPair> readable_stream_tee(JS::Realm&, ReadableStream&, bool clone_for_branch2);
WebIDL::ExceptionOr<ReadableStreamPair> readable_stream_default_tee(JS::Realm& realm, ReadableStream& stream, bool clone_for_branch2);
WebIDL::ExceptionOr<ReadableStreamPair> readable_byte_stream_tee(JS::Realm& realm, ReadableStream& stream);
WebIDL::ExceptionOr<JS::NonnullGCPtr<WebIDL::Promise>> readable_stream_reader_generic_cancel(ReadableStreamGenericReaderMixin&, JS::Value reason);
void readable_stream_reader_generic_initialize(ReadableStreamReader, ReadableStream&);