From 29e74d4952b772f7f1bf51e1a8f1665bbbde39d1 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 4 Feb 2019 22:06:08 -0800 Subject: benchmark: refactor for consistent style Code in benchmark directory sometimes uses `function () {}` for anonymous callbacks and sometimes uses `() => {}`. Multi-line arrays sometimes have a trailing comma and sometimes do not. Update to always use arrow functions for anonymous callbacks and trailing commas for multiline arrays. PR-URL: https://github.com/nodejs/node/pull/25944 Reviewed-By: Anto Aravinth Reviewed-By: James M Snell --- benchmark/v8/get-stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmark/v8') diff --git a/benchmark/v8/get-stats.js b/benchmark/v8/get-stats.js index 84a0655f5d..aa1f051681 100644 --- a/benchmark/v8/get-stats.js +++ b/benchmark/v8/get-stats.js @@ -6,7 +6,7 @@ const v8 = require('v8'); const bench = common.createBenchmark(main, { method: [ 'getHeapStatistics', - 'getHeapSpaceStatistics' + 'getHeapSpaceStatistics', ], n: [1e6] }); -- cgit v1.2.3