Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yep, Chrome is pretty great about printing unhandled promise rejections to the console. However, I just tested Firefox and Safari, and neither of them will warn you in that case - not to mention older browsers like Android <4.4 and IE <=11, which don't even have native promises!

So if you're ever trying to debug promises in a non-Chrome browser, you may find my "insane" advice pretty helpful. :)



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

Search: