From 00a1d3633c3ed71977a981105de189915eb70e6d Mon Sep 17 00:00:00 2001 From: isaacs Date: Sat, 31 Aug 2013 17:58:17 -0700 Subject: [PATCH] benchmark: Fix execArgv handling Bug in 01f3b46 causes the same benchmark to be run repeatedly. Not so useful for the compare scripts. --- benchmark/common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/benchmark/common.js b/benchmark/common.js index 7cd2dfb6d2a..ff54f2ea495 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -31,8 +31,7 @@ function runBenchmarks() { console.error(type + '/' + test); test = path.resolve(dir, test); - var a = process.execArgv || []; - a.push(test); + var a = (process.execArgv || []).concat(test); var child = spawn(process.execPath, a, { stdio: 'inherit' }); child.on('close', function(code) { if (code)