Skip to content

Commit d10c59f

Browse files
committed
benchmark,test: remove output from readable-async-iterator benchmark
Extra output makes test-benchmark-streams fail. Change console.log() to console.assert(). Fixes: #34409 PR-URL: #34411 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
1 parent 5aeaff6 commit d10c59f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

benchmark/streams/readable-async-iterator.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ async function main({ n, sync }) {
3434
}
3535
}
3636

37-
// Side effect to ensure V8 does not optimize away the
38-
// loop as a noop.
39-
console.log(x);
37+
// Use x to ensure V8 does not optimize away the loop as a noop.
38+
console.assert(x);
4039

4140
bench.end(n);
4241
}

0 commit comments

Comments
 (0)