Commit 9d26358
async_hooks: remove internal only error checking
This error checking is mostly unnecessary and is just a Node core
developer nicety, rather than something that is needed for the
user-land. It can be safely removed without any practical
impact while making nextTick, timers, immediates and AsyncResource
substantially faster.
PR-URL: #30967
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent d48f592 commit 9d26358Copy full SHA for 9d26358
File tree
Expand file treeCollapse file tree
4 files changed
+26
-110
lines changedOpen diff view settings
Filter options
- lib
- internal
- test/async-hooks
Expand file treeCollapse file tree
4 files changed
+26
-110
lines changedOpen diff view settings
Collapse file
+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
| 11 | + |
11 | 12 | |
12 | 13 | |
13 | 14 | |
| ||
31 | 32 | |
32 | 33 | |
33 | 34 | |
| 35 | + |
34 | 36 | |
35 | 37 | |
36 | 38 | |
| ||
157 | 159 | |
158 | 160 | |
159 | 161 | |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
160 | 166 | |
161 | 167 | |
162 | 168 | |
|
Collapse file
lib/internal/async_hooks.js
Copy file name to clipboardExpand all lines: lib/internal/async_hooks.js+5-37Lines changed: 5 additions & 37 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | 6 | |
8 | 7 | |
9 | 8 | |
10 | 9 | |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | 10 | |
17 | 11 | |
18 | 12 | |
| ||
117 | 111 | |
118 | 112 | |
119 | 113 | |
120 | | - |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | 114 | |
130 | 115 | |
131 | 116 | |
| ||
314 | 299 | |
315 | 300 | |
316 | 301 | |
| 302 | + |
| 303 | + |
| 304 | + |
317 | 305 | |
318 | 306 | |
319 | 307 | |
| ||
329 | 317 | |
330 | 318 | |
331 | 319 | |
332 | | - |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | | - |
338 | | - |
339 | | - |
340 | 320 | |
341 | 321 | |
342 | 322 | |
343 | 323 | |
344 | 324 | |
345 | | - |
346 | | - |
347 | 325 | |
348 | 326 | |
349 | 327 | |
| ||
353 | 331 | |
354 | 332 | |
355 | 333 | |
356 | | - |
357 | | - |
358 | | - |
359 | | - |
360 | | - |
361 | | - |
362 | 334 | |
363 | 335 | |
364 | 336 | |
| ||
367 | 339 | |
368 | 340 | |
369 | 341 | |
370 | | - |
371 | | - |
372 | 342 | |
373 | 343 | |
374 | 344 | |
| ||
377 | 347 | |
378 | 348 | |
379 | 349 | |
380 | | - |
381 | | - |
382 | 350 | |
383 | 351 | |
384 | 352 | |
| ||
418 | 386 | |
419 | 387 | |
420 | 388 | |
421 | | - |
422 | | - |
| 389 | + |
423 | 390 | |
424 | 391 | |
425 | 392 | |
| ||
464 | 431 | |
465 | 432 | |
466 | 433 | |
| 434 | + |
467 | 435 | |
468 | 436 | |
469 | 437 | |
|
Collapse file
test/async-hooks/test-emit-before-after.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-emit-before-after.js+15-33Lines changed: 15 additions & 33 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | 6 | |
8 | 7 | |
9 | 8 | |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | 9 | |
41 | 10 | |
42 | 11 | |
| ||
45 | 14 | |
46 | 15 | |
47 | 16 | |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
48 | 30 | |
49 | | - |
50 | | - |
| 31 | + |
| 32 | + |
51 | 33 | |
52 | 34 | |
53 | 35 | |
|
Collapse file
test/async-hooks/test-emit-init.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-emit-init.js-40Lines changed: 0 additions & 40 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | 6 | |
8 | 7 | |
9 | 8 | |
| ||
23 | 22 | |
24 | 23 | |
25 | 24 | |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | 25 | |
66 | 26 | |
67 | 27 | |
|
0 commit comments