Comment on Async/await support in FirefoxparentComments−breatheoften9yI'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?−minitech9yIt results in a rejected promise. (The other behaviour would be a bit inconsistent/annoying.)
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.)