Browse Source

benchmark: update compare.js exit method

Node documentation recommends using process.exitCode = x and returning
as a way to exit.

PR-URL: https://github.com/nodejs/node/pull/7961
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
v7.x
Adrian Nitu 9 years ago
committed by Andreas Madsen
parent
commit
4b527a4129
  1. 3
      benchmark/compare.js

3
benchmark/compare.js

@ -33,7 +33,8 @@ const benchmarks = cli.benchmarks();
if (benchmarks.length === 0) { if (benchmarks.length === 0) {
console.error('no benchmarks found'); console.error('no benchmarks found');
process.exit(1); process.exitCode = 1;
return;
} }
// Create queue from the benchmarks list such both node versions are tested // Create queue from the benchmarks list such both node versions are tested

Loading…
Cancel
Save