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:
Adrian Nitu 2016-08-05 13:17:41 +03:00 committed by Andreas Madsen
parent 9e7fd8e810
commit 4b527a4129

View File

@ -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