From 4b527a4129c00531ff852c78cd20e480120e65bd Mon Sep 17 00:00:00 2001 From: Adrian Nitu Date: Fri, 5 Aug 2016 13:17:41 +0300 Subject: [PATCH] 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 Reviewed-By: Andreas Madsen --- benchmark/compare.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmark/compare.js b/benchmark/compare.js index 94ff19bb56..de328d60fc 100644 --- a/benchmark/compare.js +++ b/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