Permalink
Browse files

benchmark: update compare.js exit method

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

PR-URL: #7961
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
  • Loading branch information...
adrian-nitu-92 authored and AndreasMadsen committed Aug 5, 2016
1 parent 9e7fd8e commit 4b527a4129c00531ff852c78cd20e480120e65bd
Showing with 2 additions and 1 deletion.
  1. +2 −1 benchmark/compare.js
@@ -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

0 comments on commit 4b527a4

Please sign in to comment.