mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Invoke the correct Streams BYOB AOs when in a closed state
This commit is contained in:
parent
ed1076d9ca
commit
d7612969e0
Notes:
sideshowbarker
2024-07-17 05:19:06 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/d7612969e0 Pull-request: https://github.com/SerenityOS/serenity/pull/22977 Reviewed-by: https://github.com/shannonbooth ✅
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…
Reference in a new issue