Skip to content

Comment on Async/await support in Firefoxparent

Comments

I'm not up to speed on async/await -- do you happen to know if an async function throws on synchronous code (before the first await keyword) -- does that result in an asynchronously rejected promise or a synchronous exception?

It results in a rejected promise. (The other behaviour would be a bit inconsistent/annoying.)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.