diff options
Diffstat (limited to 'benchmark/assert/deepequal-object.js')
-rw-r--r-- | benchmark/assert/deepequal-object.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/benchmark/assert/deepequal-object.js b/benchmark/assert/deepequal-object.js index 4ad3704408..2c2549d584 100644 --- a/benchmark/assert/deepequal-object.js +++ b/benchmark/assert/deepequal-object.js @@ -25,10 +25,9 @@ function createObj(source, add = '') { })); } -function main(conf) { - const size = conf.size; - // TODO: Fix this "hack" - const n = conf.n / size; +function main({ size, n, method }) { + // TODO: Fix this "hack". `n` should not be manipulated. + n = n / size; var i; const source = Array.apply(null, Array(size)); @@ -36,7 +35,7 @@ function main(conf) { const expected = createObj(source); const expectedWrong = createObj(source, '4'); - switch (conf.method) { + switch (method) { case '': // Empty string falls through to next line as default, mostly for tests. case 'deepEqual': |