pass node-js command line arguments to microbench
This commit is contained in:
parent
95e0aa0526
commit
8e21b96738
1 changed files with 4 additions and 1 deletions
|
@ -1136,6 +1136,9 @@ function main(argc, argv, g)
|
|||
save_result("microbench-new.txt", log_data);
|
||||
}
|
||||
|
||||
if (typeof scriptArgs === "undefined")
|
||||
if (typeof scriptArgs === "undefined") {
|
||||
scriptArgs = [];
|
||||
if (typeof process.argv === "object")
|
||||
scriptArgs = process.argv.slice(1);
|
||||
}
|
||||
main(scriptArgs.length, scriptArgs, this);
|
||||
|
|
Loading…
Reference in a new issue