Commit cfaa1e2
process: unhandledRejection support more errors
Support cross realm errors where `instanceof` errors in our
unhandledRejection warning to print better error with stack traces.
PR-URL: #41682
Refs: #41676
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>1 parent 4339299 commit cfaa1e2Copy full SHA for cfaa1e2
File tree
Expand file treeCollapse file tree
2 files changed
+35
-6
lines changedOpen diff view settings
Filter options
- lib/internal/process
- test/parallel
Expand file treeCollapse file tree
2 files changed
+35
-6
lines changedOpen diff view settings
Collapse file
lib/internal/process/promises.js
Copy file name to clipboardExpand all lines: lib/internal/process/promises.js+18-4Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
8 | 9 | |
9 | 10 | |
10 | 11 | |
| ||
79 | 80 | |
80 | 81 | |
81 | 82 | |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
82 | 89 | |
83 | 90 | |
84 | 91 | |
| ||
179 | 186 | |
180 | 187 | |
181 | 188 | |
182 | | - |
| 189 | + |
183 | 190 | |
184 | 191 | |
185 | 192 | |
186 | 193 | |
187 | 194 | |
188 | 195 | |
189 | | - |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
190 | 204 | |
191 | 205 | |
192 | 206 | |
| ||
232 | 246 | |
233 | 247 | |
234 | 248 | |
235 | | - |
| 249 | + |
236 | 250 | |
237 | 251 | |
238 | 252 | |
| ||
259 | 273 | |
260 | 274 | |
261 | 275 | |
262 | | - |
| 276 | + |
263 | 277 | |
264 | 278 | |
265 | 279 | |
|
Collapse file
test/parallel/test-promise-unhandled-warn.js
Copy file name to clipboardExpand all lines: test/parallel/test-promise-unhandled-warn.js+17-2Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
5 | 6 | |
6 | 7 | |
7 | 8 | |
| ||
12 | 13 | |
13 | 14 | |
14 | 15 | |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
15 | 26 | |
16 | 27 | |
17 | | - |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
18 | 33 | |
19 | | - |
| 34 | + |
20 | 35 | |
21 | 36 | |
22 | 37 | |
|
0 commit comments