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

The “add error handling” example is baffling. I’m not even sure if it’s valid JS to put an export statement in a try/catch block?

Edit: No, it's not valid javascript https://i.imgur.com/9g28y3l.png



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

Search: