Skip to content

Commit

Permalink
benchmark: Fix execArgv handling
Browse files Browse the repository at this point in the history
Bug in 01f3b46 causes the same benchmark to be run repeatedly.

Not so useful for the compare scripts.
  • Loading branch information
isaacs committed Sep 1, 2013
1 parent 01f3b46 commit 00a1d36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 00a1d36

Please sign in to comment.