diff options
author | Rich Trott <rtrott@gmail.com> | 2020-07-17 06:00:03 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-07-17 08:41:15 -0700 |
commit | d10c59fc600c4766de8918f350b4850a1fae8f6a (patch) | |
tree | 359a75ee7463a9bb3d3c6f69b253c2942f266487 /benchmark/streams | |
parent | 5aeaff64991815f4ec9a561ed02f225f479fb74f (diff) | |
download | node-new-d10c59fc600c4766de8918f350b4850a1fae8f6a.tar.gz |
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/streams')
-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 0455f67195..3d06eda745 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); } |