4 ms·
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
by breatheoften 10y ago
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?
- deleted 10y ago[deleted]
- minitech 10y agoIt results in a rejected promise. (The other behaviour would be a bit inconsistent/annoying.)