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.)