mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-24 06:38:12 +08:00
pass node-js command line arguments to microbench
This commit is contained in:
parent
95e0aa0526
commit
8e21b96738
@ -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 New Issue
Block a user