mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWeb: Support BYOB readers in ReadableByteStreamControllerEnqueue
This commit is contained in:
parent
9662872b20
commit
dcb7bb4a92
Notes:
sideshowbarker
2024-07-17 09:39:38 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/dcb7bb4a92 Pull-request: https://github.com/SerenityOS/serenity/pull/21983
1 changed files with 5 additions and 3 deletions
|
@ -1935,9 +1935,11 @@ WebIDL::ExceptionOr<void> readable_byte_stream_controller_enqueue(ReadableByteSt
|
|||
}
|
||||
// 10. Otherwise, if ! ReadableStreamHasBYOBReader(stream) is true,
|
||||
else if (readable_stream_has_byob_reader(*stream)) {
|
||||
// FIXME: 1. Perform ! ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength).
|
||||
// FIXME: 2. Perform ! ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller).
|
||||
TODO();
|
||||
// 1. Perform ! ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength).
|
||||
readable_byte_stream_controller_enqueue_chunk_to_queue(controller, transferred_buffer, byte_offset, byte_length);
|
||||
|
||||
// 2. Perform ! ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller).
|
||||
readable_byte_stream_controller_process_pull_into_descriptors_using_queue(controller);
|
||||
}
|
||||
// 11. Otherwise,
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue