mirror of
https://github.com/bellard/quickjs.git
synced 2024-12-12 09:44:33 +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