4 ms·
But until recently an unhandled promise failure was NOT a thrown error, and when it is it's not the error you want.
by ergothus 6y ago
But until recently an unhandled promise failure was NOT a thrown error, and when it is it's not the error you want.
- z3t4 6y agoThere is a saying - what you don't know can't hurt you. The idea of Promises comes from strongly typed static functional languages. Adding it to JavaScript was a terrible idea. Like with static modules - forcing the user to download the whole website/app before anything is rendered on the screen.
- aaomidi 6y agoLol what are you on about. You're mixing so many different things right now.
- tengbretson 6y agoAbsolutely! I guess what I'm trying to say is that in my experience, crashing on an unhandled rejection is a better remedy to the dangling promise problem than banning them outright.