diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2017-12-30 04:00:22 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-01-23 01:29:32 +0100 |
commit | d49580d8121c1ca75b53fbbc4445f68deb6207a4 (patch) | |
tree | 3a0102d410caa7300e83424132b74b2f3acbc5e5 /benchmark/child_process/child-process-params.js | |
parent | 8e3d7623a54123821ad731c63c8ea661ca5c84c8 (diff) | |
download | android-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.js | 6 |
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) { |