Skip to content
Merged
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
2 changes: 1 addition & 1 deletion benchmark/webstreams/pipe-to.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,7 +18,7 @@ async function main({n, highWaterMarkR, highWaterMarkW }){
const rs = new ReadableStream({
highWaterMark: highWaterMarkR,
pull: function(controller){
if (i++ === n){
if (i++ < n){
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, this does not call enqueue as it closes the stream immediately

controller.enqueue(b);
} else{
controller.close();
Expand Down