summaryrefslogtreecommitdiff
path: root/benchmark/assert/deepequal-object.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-01-31 21:05:17 -0800
committerRich Trott <rtrott@gmail.com>2019-02-03 01:48:32 -0800
commit34189563496a7d418382ac402241d4970b32b78b (patch)
treed1e77bb61a20535c26ec87fb52e6605de9cff1bf /benchmark/assert/deepequal-object.js
parent4deb23a2f66e576be96c3bb856e5199cb3439865 (diff)
downloadandroid-node-v8-34189563496a7d418382ac402241d4970b32b78b.tar.gz
android-node-v8-34189563496a7d418382ac402241d4970b32b78b.tar.bz2
android-node-v8-34189563496a7d418382ac402241d4970b32b78b.zip
benchmark: use consistent coding style in assert/*
Files in benchmark/assert/* were sometimes using trailing commas for multi-line objects and sometimes not, mixing the approaches in the same file sometimes. Standardize these files to always use trailing commas in multi-line objects. Additionally, remove some unnecessary line-wrapping (so that there are fewer multi-line objects). PR-URL: https://github.com/nodejs/node/pull/25865 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to 'benchmark/assert/deepequal-object.js')
-rw-r--r--benchmark/assert/deepequal-object.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/benchmark/assert/deepequal-object.js b/benchmark/assert/deepequal-object.js
index 1a9c826a00..240da23d24 100644
--- a/benchmark/assert/deepequal-object.js
+++ b/benchmark/assert/deepequal-object.js
@@ -7,10 +7,7 @@ const bench = common.createBenchmark(main, {
n: [5e3],
size: [1e2, 1e3, 5e4],
strict: [0, 1],
- method: [
- 'deepEqual',
- 'notDeepEqual'
- ]
+ method: [ 'deepEqual', 'notDeepEqual' ],
});
function createObj(source, add = '') {
@@ -21,8 +18,8 @@ function createObj(source, add = '') {
a: [1, 2, 3],
baz: n,
c: {},
- b: []
- }
+ b: [],
+ },
}));
}