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/legacy-vs-whatwg-url-searchparams-parse.js')
-rw-r--r--benchmark/url/legacy-vs-whatwg-url-searchparams-parse.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/benchmark/url/legacy-vs-whatwg-url-searchparams-parse.js b/benchmark/url/legacy-vs-whatwg-url-searchparams-parse.js
index b4a80af4e5e..51953ec8707 100644
--- a/benchmark/url/legacy-vs-whatwg-url-searchparams-parse.js
+++ b/benchmark/url/legacy-vs-whatwg-url-searchparams-parse.js
@@ -28,11 +28,7 @@ function useWHATWG(n, input) {
bench.end(n);
}
-function main(conf) {
- const type = conf.type;
- const n = conf.n | 0;
- const method = conf.method;
-
+function main({ type, n, method }) {
const input = inputs[type];
if (!input) {
throw new Error('Unknown input type');