mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 09:14:21 +03:00
LibWeb/Streams: Handle BYOB reader in ReadableStreamError
This commit is contained in:
parent
24aa43f3fd
commit
acda17ccc4
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/acda17ccc4 Pull-request: https://github.com/SerenityOS/serenity/pull/21198 Reviewed-by: https://github.com/ADKaster ✅
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user