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>
This commit is contained in:
parent
9e7fd8e810
commit
4b527a4129
@ -33,7 +33,8 @@ const benchmarks = cli.benchmarks();
|
||||
|
||||
if (benchmarks.length === 0) {
|
||||
console.error('no benchmarks found');
|
||||
process.exit(1);
|
||||
process.exitCode = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
// Create queue from the benchmarks list such both node versions are tested
|
||||
|
Loading…
x
Reference in New Issue
Block a user