Asynchronous stack traces: why `await` beats `Promise#then()`

1 ยท Mathias Bynens ยท Sept. 12, 2017, 3:29 p.m.
Compared to using promises directly, not only can async and await make code more readable for developers โ€” they enable some interesting optimizations in JavaScript engines, too! This write-up is about one such optimization involving stack traces for asynchronous code....