`async`/`await` and Node

This repository was archived by the owner on Nov 9, 2017. It is now read-only.

This repository was archived by the owner on Nov 9, 2017. It is now read-only.

@benjamingr

Description

Async/await has landed in V8, details are being worked out. This is a feature many users have been waiting for and I suspect many will use.

We need to figure out how to work with it in core, namely:

  • We need to finally make up our mind about what happens when promises throw and there is no catch handler attached in a reasonable time span.
  • We need to figure out how core would work with async functions would work in core and with core functions.
  • The CTC need to make a decision about Adding Core support for Promises node#5020 and consider how (and if) it would work with async functions.
  • Node core might want to be involved in proposals regarding typed catch and other proposals that are needed for async/await to work in Node.
  • We need to solve the promises related post-mortem issues. Creating a promise no longer requires using the word "Promise" anywhere - all you have to do is (async () => {})(). Post-mortem core-dump users would have to run a transform on their code forbidding async and await otherwise.

I would also love to see async/await in the context of Node discussed in the next TC meeting if possible. Our window of action is rapidly closing and if there is a grave mistake we need to find it asap.