-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise the handling of exceptions thrown in callbacks
On second thoughts, exceptions thrown in callbacks *should* crash the program, since they are likely to indicate bugs. Redirecting them to an error event is conflating them with operational errors -- dropped connections and the like. It's possible to use domains (available since Node.JS 0.8) to redirect otherwise uncaught exceptions, as demonstrated by the tests.
- Loading branch information
Showing
2 changed files
with
42 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters