sweet-js / sweet-core

Sweeten your JavaScript.
https://www.sweetjs.org
BSD 2-Clause "Simplified" License
4.59k stars 211 forks source link

Add parsing support for async/await #741

Closed disnet closed 7 years ago

disnet commented 7 years ago

This PR adds support in sweet's parser but shift-codegen doesn't support async/await yet so it won't be usable until support has been added there.

gabejohnson commented 7 years ago

There's also an entry for await on line 84 of tokens.js

disnet commented 7 years ago

Now enforcing that await is only valid in async contexts and all the left over references in tokens.js should be cleaned up.