diff options
author | Rich Trott <rtrott@gmail.com> | 2020-07-17 16:00:03 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-07-17 18:41:15 +0300 |
commit | d10c59fc600c4766de8918f350b4850a1fae8f6a (patch) | |
tree | 359a75ee7463a9bb3d3c6f69b253c2942f266487 /benchmark | |
parent | 5aeaff64991815f4ec9a561ed02f225f479fb74f (diff) |
benchmark,test: remove output from readable-async-iterator benchmark
Extra output makes test-benchmark-streams fail. Change console.log() to
console.assert().
Fixes: https://github.com/nodejs/node/issues/34409
PR-URL: https://github.com/nodejs/node/pull/34411
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/streams/readable-async-iterator.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/benchmark/streams/readable-async-iterator.js b/benchmark/streams/readable-async-iterator.js index 0455f67195f..3d06eda7458 100644 --- a/benchmark/streams/readable-async-iterator.js +++ b/benchmark/streams/readable-async-iterator.js @@ -34,9 +34,8 @@ async function main({ n, sync }) { } } - // Side effect to ensure V8 does not optimize away the - // loop as a noop. - console.log(x); + // Use x to ensure V8 does not optimize away the loop as a noop. + console.assert(x); bench.end(n); } |