Hacker News new | ask | show | jobs
by Too 3213 days ago
Isn't throwing exception in promise same as calling reject?

The receiver of the promise is the one who should handle rejection. Not the one creating the promise.

If the receiver doesn't handle it you can register global error handler and log all unhandled errors.