Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document default unhandledRejection handler behavior #50075

Open
DanKaplanSES opened this issue Oct 7, 2023 · 1 comment
Open

Document default unhandledRejection handler behavior #50075

DanKaplanSES opened this issue Oct 7, 2023 · 1 comment
Labels
doc Issues and PRs related to the documentations. process Issues and PRs related to the process subsystem. promises Issues and PRs related to ECMAScript promises.

Comments

@DanKaplanSES
Copy link
Contributor

Affected URL(s)

https://nodejs.org/api/process.html#event-unhandledrejection

Description of the problem

The unhandledRejection event is well documented, but I'd like to know what happens by default when the author's code doesn't implement a unhandledRejection handler. Does it print an error? Does it silently fail? etc.

@DanKaplanSES DanKaplanSES added the doc Issues and PRs related to the documentations. label Oct 7, 2023
@bnoordhuis bnoordhuis added process Issues and PRs related to the process subsystem. promises Issues and PRs related to ECMAScript promises. labels Oct 7, 2023
@bnoordhuis
Copy link
Member

Documented in https://nodejs.org/api/cli.html#--unhandled-rejectionsmode

The documentation for uncaughtException and uncaughtExceptionMonitor links to it because that's where unhandled rejections end up if you don't have an unhandledRejection event listener.

If you feel the documentation can be improved, then please open a pull request and link back to this issue. Otherwise please go ahead and close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. process Issues and PRs related to the process subsystem. promises Issues and PRs related to ECMAScript promises.
Projects
None yet
Development

No branches or pull requests

2 participants