diff options
Diffstat (limited to 'benchmark/assert/deepequal-map.js')
-rw-r--r-- | benchmark/assert/deepequal-map.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/benchmark/assert/deepequal-map.js b/benchmark/assert/deepequal-map.js index 4976f26198..085274e8bf 100644 --- a/benchmark/assert/deepequal-map.js +++ b/benchmark/assert/deepequal-map.js @@ -38,14 +38,11 @@ function benchmark(method, n, values, values2) { bench.end(n); } -function main(conf) { - const n = +conf.n; - const len = +conf.len; - +function main({ n, len, method }) { const array = Array(len).fill(1); var values, values2; - switch (conf.method) { + switch (method) { case '': // Empty string falls through to next line as default, mostly for tests. case 'deepEqual_primitiveOnly': |