Skip to content

Commit

Permalink
benchmark: update compare.js exit method
Browse files Browse the repository at this point in the history
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 12, 2016
1 parent 9e7fd8e commit 4b527a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b527a4

Please sign in to comment.