Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-06-21 00:37:00 +0300
committerRich Trott <rtrott@gmail.com>2017-06-24 00:43:20 +0300
commit095c0de94d818088cacf2c33ad4913768c15024a (patch)
tree77eb0aaffa2aa80ba1240280a716eb64c4a7ff1d /benchmark/url
parente3ea0fc97bf3a911463275446024b50e8bae865f (diff)
benchmark,lib,test: use braces for multiline block
For if/else and loops where the bodies span more than one line, use curly braces. PR-URL: https://github.com/nodejs/node/pull/13828 Ref: https://github.com/nodejs/node/pull/13623#discussion_r123048602 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/url')
-rw-r--r--benchmark/url/url-searchparams-iteration.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/url/url-searchparams-iteration.js b/benchmark/url/url-searchparams-iteration.js
index 833271ef306..89919af7255 100644
--- a/benchmark/url/url-searchparams-iteration.js
+++ b/benchmark/url/url-searchparams-iteration.js
@@ -32,11 +32,12 @@ function iterator(n) {
const noDead = [];
bench.start();
- for (var i = 0; i < n; i += 1)
+ for (var i = 0; i < n; i += 1) {
for (var pair of params) {
noDead[0] = pair[0];
noDead[1] = pair[1];
}
+ }
bench.end(n);
assert.strictEqual(noDead[0], 'three');