Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3730,6 +3730,10 @@ The following abstract operations support the implementation of the
1. Perform !
[$ReadableByteStreamControllerCommitPullIntoDescriptor$](|controller|.[=ReadableByteStreamController/[[stream]]=],
|filledPullInto|).
1. If !
[$ReadableStreamHasDefaultReader$](|controller|.[=ReadableByteStreamController/[[stream]]=]) is
true, perform !
[$ReadableByteStreamControllerProcessReadRequestsUsingQueue$](|controller|).
1. Return.
1. If |pullIntoDescriptor|'s [=pull-into descriptor/bytes filled=] < |pullIntoDescriptor|'s
[=pull-into descriptor/minimum fill=], return.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1702,9 +1702,13 @@ function ReadableByteStreamControllerRespondInReadableState(controller, bytesWri

if (pullIntoDescriptor.readerType === 'none') {
ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue(controller, pullIntoDescriptor);
const stream = controller._stream;
const filledPullIntos = ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller);
for (const filledPullInto of filledPullIntos) {
ReadableByteStreamControllerCommitPullIntoDescriptor(controller._stream, filledPullInto);
ReadableByteStreamControllerCommitPullIntoDescriptor(stream, filledPullInto);
}
if (ReadableStreamHasDefaultReader(stream) === true) {
ReadableByteStreamControllerProcessReadRequestsUsingQueue(controller);
}
return;
}
Expand Down
2 changes: 1 addition & 1 deletion reference-implementation/web-platform-tests
Loading