Skip to content

Commit 00a1d36

Browse files
committed
benchmark: Fix execArgv handling
Bug in 01f3b46 causes the same benchmark to be run repeatedly. Not so useful for the compare scripts.
1 parent 01f3b46 commit 00a1d36

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

benchmark/common.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ function runBenchmarks() {
3131
console.error(type + '/' + test);
3232
test = path.resolve(dir, test);
3333

34-
var a = process.execArgv || [];
35-
a.push(test);
34+
var a = (process.execArgv || []).concat(test);
3635
var child = spawn(process.execPath, a, { stdio: 'inherit' });
3736
child.on('close', function(code) {
3837
if (code)

0 commit comments

Comments
 (0)