-
Notifications
You must be signed in to change notification settings - Fork 45
can something useful be reported about unhandled rejections? #75
Comments
What kind of thing are you hoping for? |
like "these rejections happened before the crash" or something? |
ping @sam-github |
I was thinking specifically of the list of all promises that are currently rejected but do not have error handlers attached. Basically what the |
Hmmm, so I think this means hooking into So we might either have to add a c++ node api for that, or polyfill the node behavior from here... Also, on shutdown we'd need to synchronously extract the "reason" data. Not too terribly difficult with the debug api, but very hacky and, well, the V8 people are not a fan of people using it. |
https://nodejs.org/api/process.html#process_event_unhandledrejection and the mention of a "PromiseHook C++ API" (nodejs/node#11752) sparked my curiousity, its an interesting thing to know about an applications state.
The text was updated successfully, but these errors were encountered: