diff options
Diffstat (limited to 'benchmark/es/destructuring-object-bench.js')
-rw-r--r-- | benchmark/es/destructuring-object-bench.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/es/destructuring-object-bench.js b/benchmark/es/destructuring-object-bench.js index 63e085a242..73687f018d 100644 --- a/benchmark/es/destructuring-object-bench.js +++ b/benchmark/es/destructuring-object-bench.js @@ -33,10 +33,10 @@ function runDestructured(n) { bench.end(n / 1e6); } -function main(conf) { - const n = +conf.millions * 1e6; +function main({ millions, method }) { + const n = millions * 1e6; - switch (conf.method) { + switch (method) { case '': // Empty string falls through to next line as default, mostly for tests. case 'normal': |