LibWeb: Support BYOB readers in ReadableByteStreamControllerEnqueue

This commit is contained in:
Shannon Booth 2023-11-19 12:38:29 +13:00 committed by Andreas Kling
parent 9662872b20
commit dcb7bb4a92
Notes: sideshowbarker 2024-07-17 09:39:38 +09:00

View file

@ -1935,9 +1935,11 @@ WebIDL::ExceptionOr<void> readable_byte_stream_controller_enqueue(ReadableByteSt
} }
// 10. Otherwise, if ! ReadableStreamHasBYOBReader(stream) is true, // 10. Otherwise, if ! ReadableStreamHasBYOBReader(stream) is true,
else if (readable_stream_has_byob_reader(*stream)) { else if (readable_stream_has_byob_reader(*stream)) {
// FIXME: 1. Perform ! ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength). // 1. Perform ! ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength).
// FIXME: 2. Perform ! ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller). readable_byte_stream_controller_enqueue_chunk_to_queue(controller, transferred_buffer, byte_offset, byte_length);
TODO();
// 2. Perform ! ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller).
readable_byte_stream_controller_process_pull_into_descriptors_using_queue(controller);
} }
// 11. Otherwise, // 11. Otherwise,
else { else {