Skip to content

Commit

Permalink
benchmark: fix webstream pipe-to
Browse files Browse the repository at this point in the history
PR-URL: #49552
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
  • Loading branch information
rluvaton authored and ruyadorno committed Sep 28, 2023
1 parent 0f020ed commit 4126a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/webstreams/pipe-to.js
Original file line number Diff line number Diff 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) {
controller.enqueue(b);
} else {
controller.close();
Expand Down

0 comments on commit 4126a6e

Please sign in to comment.