Skip to content

Commit 4126a6e

Browse files
rluvatonruyadorno
authored andcommitted
benchmark: fix webstream pipe-to
PR-URL: #49552 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent 0f020ed commit 4126a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/webstreams/pipe-to.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function main({ n, highWaterMarkR, highWaterMarkW }) {
1818
const rs = new ReadableStream({
1919
highWaterMark: highWaterMarkR,
2020
pull: function(controller) {
21-
if (i++ === n) {
21+
if (i++ < n) {
2222
controller.enqueue(b);
2323
} else {
2424
controller.close();

0 commit comments

Comments
 (0)