LibWeb/Streams: Handle BYOB reader in ReadableStreamError

This commit is contained in:
Shannon Booth 2023-09-23 13:20:04 +12:00 committed by Andrew Kaster
parent 24aa43f3fd
commit acda17ccc4
Notes: sideshowbarker 2024-07-17 17:40:13 +09:00

View File

@ -312,10 +312,10 @@ void readable_stream_error(ReadableStream& stream, JS::Value error)
// 9. Otherwise,
else {
// 1. Assert: reader implements ReadableStreamBYOBReader.
// 2. Perform ! ReadableStreamBYOBReaderErrorReadIntoRequests(reader, e).
VERIFY(reader->has<JS::NonnullGCPtr<ReadableStreamBYOBReader>>());
// FIXME: Handle BYOBReader
TODO();
// 2. Perform ! ReadableStreamBYOBReaderErrorReadIntoRequests(reader, e).
readable_stream_byob_reader_error_read_into_requests(*reader->get<JS::NonnullGCPtr<ReadableStreamBYOBReader>>(), error);
}
}