Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add await as future reserved keyword #24

Closed
wants to merge 2 commits into from
Closed

Add await as future reserved keyword #24

wants to merge 2 commits into from

Conversation

danez
Copy link

@danez danez commented Sep 20, 2016

await is (similar to enum which is already part of esutils) a future reserved keyword in ES6
http://www.ecma-international.org/ecma-262/6.0/#sec-future-reserved-words

This came up in babel/babel#4198 and babel is using esutils to get the reserved keywords.

@danez
Copy link
Author

danez commented Dec 22, 2016

Friendly push :)
@michaelficarra

@jquense
Copy link

jquense commented Feb 14, 2017

friendly ping again :) would love to see this merged

@michaelficarra
Copy link
Member

await is only treated as a FutureReservedWord when Module is the goal symbol of the syntactic grammar.

var await is a valid Script. Having this function say that await is unconditionally a FutureReservedWord would be wrong. We could possibly add another parameter, moduleIsTheGoalSymbol/isModule.

@danez danez closed this Jun 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants