Commit 83cffd9
async_hooks: enabledHooksExist shall return if hooks are enabled
Correct the implementaton of enabledHooksExist to return true if
there are enabled hooks.
Adapt callsites which used getHooksArrays() as workaround.
PR-URL: #61054
Fixes: #61019
Refs: #59873
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>1 parent 148373c commit 83cffd9Copy full SHA for 83cffd9
5 files changed
+25-9Lines changed: 25 additions & 9 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib
- internal
- process
- src
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | | - |
59 | 58 | |
60 | 59 | |
61 | 60 | |
| ||
203 | 202 | |
204 | 203 | |
205 | 204 | |
206 | | - |
| 205 | + |
207 | 206 | |
208 | 207 | |
209 | 208 | |
|
Collapse file
lib/internal/async_hooks.js
Copy file name to clipboardExpand all lines: lib/internal/async_hooks.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
480 | 480 | |
481 | 481 | |
482 | 482 | |
483 | | - |
| 483 | + |
484 | 484 | |
485 | 485 | |
486 | 486 | |
| ||
562 | 562 | |
563 | 563 | |
564 | 564 | |
565 | | - |
| 565 | + |
566 | 566 | |
567 | 567 | |
568 | 568 | |
|
Collapse file
lib/internal/process/task_queues.js
Copy file name to clipboardExpand all lines: lib/internal/process/task_queues.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
| 28 | + |
29 | 29 | |
30 | 30 | |
31 | 31 | |
| ||
160 | 160 | |
161 | 161 | |
162 | 162 | |
163 | | - |
| 163 | + |
164 | 164 | |
165 | 165 | |
166 | 166 | |
|
Collapse file
+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
124 | 124 | |
125 | 125 | |
126 | 126 | |
127 | | - |
128 | | - |
| 127 | + |
129 | 128 | |
130 | 129 | |
131 | 130 | |
| ||
1736 | 1735 | |
1737 | 1736 | |
1738 | 1737 | |
1739 | | - |
| 1738 | + |
1740 | 1739 | |
1741 | 1740 | |
1742 | 1741 | |
|
Collapse file
test/parallel/test-async-hooks-enabledhooksexits.js
Copy file name to clipboard+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
0 commit comments