Commit cfa2b87
test,lib,benchmark: match function names
In most cases, named functions match the variable or property to which
they are being assigned. That also seems to be the practice in a series
of PRs currently being evaluated that name currently-anonymous
functions.
This change applies that rule to instances in the code base that don't
comply with that practice.
This will be enforceable with a lint rule once we upgrade to ESLint
3.8.0.
PR-URL: #9113
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>1 parent 432cb1b commit cfa2b87Copy full SHA for cfa2b87
File tree
Expand file treeCollapse file tree
11 files changed
+17
-17
lines changedOpen diff view settings
Filter options
- lib
- test
- parallel
- pummel
Expand file treeCollapse file tree
11 files changed
+17
-17
lines changedOpen diff view settings
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
159 | 159 | |
160 | 160 | |
161 | 161 | |
162 | | - |
| 162 | + |
163 | 163 | |
164 | 164 | |
165 | 165 | |
| ||
174 | 174 | |
175 | 175 | |
176 | 176 | |
177 | | - |
| 177 | + |
178 | 178 | |
179 | 179 | |
180 | 180 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
118 | 118 | |
119 | 119 | |
120 | 120 | |
121 | | - |
| 121 | + |
122 | 122 | |
123 | 123 | |
124 | 124 | |
|
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
142 | 142 | |
143 | 143 | |
144 | 144 | |
145 | | - |
| 145 | + |
146 | 146 | |
147 | 147 | |
148 | 148 | |
| ||
223 | 223 | |
224 | 224 | |
225 | 225 | |
226 | | - |
| 226 | + |
227 | 227 | |
228 | 228 | |
229 | 229 | |
| ||
235 | 235 | |
236 | 236 | |
237 | 237 | |
238 | | - |
| 238 | + |
239 | 239 | |
240 | 240 | |
241 | 241 | |
|
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
316 | 316 | |
317 | 317 | |
318 | 318 | |
319 | | - |
| 319 | + |
320 | 320 | |
321 | 321 | |
322 | 322 | |
| ||
369 | 369 | |
370 | 370 | |
371 | 371 | |
372 | | - |
| 372 | + |
373 | 373 | |
374 | 374 | |
375 | | - |
| 375 | + |
376 | 376 | |
377 | 377 | |
378 | 378 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
61 | | - |
| 61 | + |
62 | 62 | |
63 | 63 | |
64 | 64 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
697 | 697 | |
698 | 698 | |
699 | 699 | |
700 | | - |
| 700 | + |
701 | 701 | |
702 | 702 | |
703 | 703 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
189 | 189 | |
190 | 190 | |
191 | 191 | |
192 | | - |
| 192 | + |
193 | 193 | |
194 | 194 | |
195 | 195 | |
|
Collapse file
test/parallel/test-child-process-spawn-typeerror.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-spawn-typeerror.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
| 60 | + |
61 | 61 | |
62 | 62 | |
63 | 63 | |
|
Collapse file
test/parallel/test-http-client-readable.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-client-readable.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | 20 | |
21 | 21 | |
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
31 | 31 | |
32 | 32 | |
33 | 33 | |
|
Collapse file
test/parallel/test-repl-persistent-history.js
Copy file name to clipboardExpand all lines: test/parallel/test-repl-persistent-history.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
176 | 176 | |
177 | 177 | |
178 | 178 | |
179 | | - |
| 179 | + |
180 | 180 | |
181 | 181 | |
182 | 182 | |
|
0 commit comments