Commit 35471bc
domain: fix error emit handling
Fix an issue where error is never emitted on the original EventEmitter
in situations where a listener for error does exist.
Refactor to eliminate unnecessary try/catch/finally block.
Backport-PR-URL: #18487
PR-URL: #17588
Refs: #17403
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 28edc1d commit 35471bcCopy full SHA for 35471bc
File tree
Expand file treeCollapse file tree
2 files changed
+40
-17
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+40
-17
lines changedOpen diff view settings
Collapse file
+20-17Lines changed: 20 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
399 | 399 | |
400 | 400 | |
401 | 401 | |
402 | | - |
403 | | - |
404 | | - |
405 | 402 | |
406 | 403 | |
407 | | - |
408 | | - |
409 | | - |
410 | | - |
411 | | - |
412 | | - |
413 | | - |
414 | | - |
| 404 | + |
| 405 | + |
415 | 406 | |
416 | | - |
417 | | - |
| 407 | + |
| 408 | + |
| 409 | + |
| 410 | + |
418 | 411 | |
419 | | - |
420 | | - |
| 412 | + |
| 413 | + |
| 414 | + |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
421 | 419 | |
422 | 420 | |
423 | 421 | |
424 | 422 | |
| 423 | + |
425 | 424 | |
426 | 425 | |
427 | | - |
428 | | - |
429 | 426 | |
| 427 | + |
| 428 | + |
| 429 | + |
| 430 | + |
| 431 | + |
| 432 | + |
430 | 433 | |
Collapse file
test/parallel/test-domain-ee-error-listener.js
Copy file name to clipboard+20Lines changed: 20 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 | + |
| 19 | + |
| 20 | + |
0 commit comments