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/es/map-bench.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmark/es') diff --git a/benchmark/es/map-bench.js b/benchmark/es/map-bench.js index d34010c6d5..a2f9e2450a 100644 --- a/benchmark/es/map-bench.js +++ b/benchmark/es/map-bench.js @@ -6,7 +6,7 @@ const assert = require('assert'); const bench = common.createBenchmark(main, { method: [ 'object', 'nullProtoObject', 'nullProtoLiteralObject', 'storageObject', - 'fakeMap', 'map' + 'fakeMap', 'map', ], n: [1e6] }); -- cgit v1.2.3