Hacker News new | past | comments | ask | show | jobs | submit login

> I also don't see why the unhandled exception from the background thread cannot terminate main thread. Why not? That is how unhandled exceptions are supposed to work. Terminating the program is the optimal default behaviour for any error in my opinion. This way you won't miss them.

This is how unhandled promise rejections will be handled in node soon. In the browser, you can declare an event handler for unhandled promise rejections.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: