mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
LibWeb: Invoke the correct Streams BYOB AOs when in a closed state
This commit is contained in:
parent
ed1076d9ca
commit
d7612969e0
1 changed files with 2 additions and 2 deletions
|
@ -1487,9 +1487,9 @@ void readable_byte_stream_controller_respond_in_closed_state(ReadableByteStreamC
|
|||
auto& stream = *controller.stream();
|
||||
|
||||
// 4. If ! ReadableStreamHasBYOBReader(stream) is true,
|
||||
if (readable_stream_has_default_reader(stream)) {
|
||||
if (readable_stream_has_byob_reader(stream)) {
|
||||
// 1. While ! ReadableStreamGetNumReadIntoRequests(stream) > 0,
|
||||
while (readable_stream_get_num_read_requests(stream) > 0) {
|
||||
while (readable_stream_get_num_read_into_requests(stream) > 0) {
|
||||
// 1. Let pullIntoDescriptor be ! ReadableByteStreamControllerShiftPendingPullInto(controller).
|
||||
auto pull_into_descriptor = readable_byte_stream_controller_shift_pending_pull_into(controller);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue