Skip to content

Commit 8e21b96

Browse files
committed
pass node-js command line arguments to microbench
1 parent 95e0aa0 commit 8e21b96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/microbench.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,9 @@ function main(argc, argv, g)
11361136
save_result("microbench-new.txt", log_data);
11371137
}
11381138

1139-
if (typeof scriptArgs === "undefined")
1139+
if (typeof scriptArgs === "undefined") {
11401140
scriptArgs = [];
1141+
if (typeof process.argv === "object")
1142+
scriptArgs = process.argv.slice(1);
1143+
}
11411144
main(scriptArgs.length, scriptArgs, this);

0 commit comments

Comments
 (0)