News for hackers. Stuff that matters.
Re:If Not SPAs, What? by tofuahdude on Thursday October 29, 2020 @01:40AM (#24927611)
Fyi return await is redundant and is just creating one additional callback you didn't need (b/c you will have to call this function with an await anyways)
Re:If Not SPAs, What? by chain-- on Thursday October 29, 2020 @04:50AM (#24928463)
Try / catch is the exception, if you don't await then your catch handler won't work. https://jakearchibald.com/2017/await-vs-return-vs-return-awa...
Re:If Not SPAs, What? by azhu on Thursday October 29, 2020 @04:07PM (#24935090)
Semi funny that this exchange is kinda like proof of why JS catches the hate it does.