async/await improvements

Tab Atkins Jr. jackalmage at gmail.com
Wed Nov 12 15:46:09 PST 2014


On Wed, Nov 12, 2014 at 3:36 PM, James Long <longster at gmail.com> wrote:
> `await` is *always* inside an `async` function so there's always a
> promise created for that function which is waiting for it to be done
> executing. That's the one I'm talking about.

Okay.  That doesn't change my response.  The outer async function also
returns a promise, and doesn't run syncly with *its* caller, so it's
again physically impossible for it to throw an error at its callsite
(again, unless *its* caller has opted into asynchrony and used
`await`).

~TJ


More information about the es-discuss mailing list