Commit 812e0b0
test: refactor async-hooks test-callback-error
Two child processes have their logic in a switch statement and a third
uses an `if` statement to detect it. Move all three child process tasks
into switch statement.
PR-URL: #13554
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: David Cai <davidcai1993@yahoo.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>1 parent 00d2f7c commit 812e0b0Copy full SHA for 812e0b0
File tree
Expand file treeCollapse file tree
1 file changed
+7
-8
lines changedOpen diff view settings
Filter options
- test/async-hooks
Expand file treeCollapse file tree
1 file changed
+7
-8
lines changedOpen diff view settings
Collapse file
test/async-hooks/test-callback-error.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-callback-error.js+7-8Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
33 | 31 | |
34 | | - |
35 | | - |
| 32 | + |
| 33 | + |
| 34 | + |
36 | 35 | |
37 | 36 | |
38 | 37 | |
|
0 commit comments