diff options
author | Rich Trott <rtrott@gmail.com> | 2019-01-31 21:05:17 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-02-03 01:48:32 -0800 |
commit | 34189563496a7d418382ac402241d4970b32b78b (patch) | |
tree | d1e77bb61a20535c26ec87fb52e6605de9cff1bf /benchmark/assert/throws.js | |
parent | 4deb23a2f66e576be96c3bb856e5199cb3439865 (diff) | |
download | android-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/throws.js')
-rw-r--r-- | benchmark/assert/throws.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/benchmark/assert/throws.js b/benchmark/assert/throws.js index 1788630cb2..3a6326371d 100644 --- a/benchmark/assert/throws.js +++ b/benchmark/assert/throws.js @@ -5,11 +5,7 @@ const { throws, doesNotThrow } = require('assert'); const bench = common.createBenchmark(main, { n: [1e4], - method: [ - 'doesNotThrow', - 'throws_TypeError', - 'throws_RegExp' - ] + method: [ 'doesNotThrow', 'throws_TypeError', 'throws_RegExp' ], }); function main({ n, method }) { |