Jonáš Jančařík
1 min readApr 1, 2020

--

Oh god, thanks, fixed that…

I should probably review the article again anyway, it’s a bit of a mess right now. Unhandled promise rejections don’t only happen in IIFEs, it can happen in any async function.

(And the confusing (for beginners at least) part is that the async function itself returns a promise and the rejection of that promise is the unhandled one.)

--

--

Jonáš Jančařík
Jonáš Jančařík

Written by Jonáš Jančařík

Data analyst, formerly technologist @ECThinkTank (http://medium.com/@ECThinkTank) @EU_Commission think tank.

No responses yet