summaryrefslogtreecommitdiff
path: root/benchmark/child_process/child-process-params.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2017-12-30 04:00:22 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-01-23 01:29:32 +0100
commitd49580d8121c1ca75b53fbbc4445f68deb6207a4 (patch)
tree3a0102d410caa7300e83424132b74b2f3acbc5e5 /benchmark/child_process/child-process-params.js
parent8e3d7623a54123821ad731c63c8ea661ca5c84c8 (diff)
downloadandroid-node-v8-d49580d8121c1ca75b53fbbc4445f68deb6207a4.tar.gz
android-node-v8-d49580d8121c1ca75b53fbbc4445f68deb6207a4.tar.bz2
android-node-v8-d49580d8121c1ca75b53fbbc4445f68deb6207a4.zip
benchmark: (child_process) use destructuring
PR-URL: https://github.com/nodejs/node/pull/18250 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/child_process/child-process-params.js')
-rw-r--r--benchmark/child_process/child-process-params.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/benchmark/child_process/child-process-params.js b/benchmark/child_process/child-process-params.js
index 644b2136a0..df930395b2 100644
--- a/benchmark/child_process/child-process-params.js
+++ b/benchmark/child_process/child-process-params.js
@@ -20,11 +20,7 @@ const configs = {
const bench = common.createBenchmark(main, configs);
-function main(conf) {
- const n = +conf.n;
- const methodName = conf.methodName;
- const params = +conf.params;
-
+function main({ n, methodName, params }) {
const method = cp[methodName];
switch (methodName) {