Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/url/whatwg-url-properties.js')
-rw-r--r--benchmark/url/whatwg-url-properties.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/benchmark/url/whatwg-url-properties.js b/benchmark/url/whatwg-url-properties.js
index 3a865d2335a..f526c07f139 100644
--- a/benchmark/url/whatwg-url-properties.js
+++ b/benchmark/url/whatwg-url-properties.js
@@ -46,11 +46,9 @@ function getAlternative(prop) {
return alternatives[prop];
}
-function main(conf) {
- const n = conf.n | 0;
- const input = inputs[conf.input];
- const url = new URL(input);
- const prop = conf.prop;
+function main({ n, input, prop }) {
+ const value = inputs[input];
+ const url = new URL(value);
switch (prop) {
case 'protocol':