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

Await: FutureReservedWord? #922

Closed
bathos opened this Issue May 27, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@bathos
Contributor

bathos commented May 27, 2017

In the ES2018 spec, the A.1 Lexical Grammar summary includes the following:

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

In the primary section on future reserved words, 11.6.2.2, await isn’t mentioned. In both sections, await is listed as a keyword proper rather than a future reserved word. Other notes in the text clarify that some contexts permit await as an identifier but I don’t think this is related to its classification as "keyword" vs "future reserved word". If I’m understanding right, the bit about FutureReservedWord in the grammar summary seems likely to be a vestige from an earlier version of the spec.

@chicoxyzzy

This comment has been minimized.

Show comment
Hide comment
@chicoxyzzy

chicoxyzzy May 31, 2017

Contributor

Hmmm... should be fixed already aec498d

Contributor

chicoxyzzy commented May 31, 2017

Hmmm... should be fixed already aec498d

@chicoxyzzy

This comment has been minimized.

Show comment
Hide comment
@chicoxyzzy

chicoxyzzy May 31, 2017

Contributor

@bathos I think you are right. It seems like A.1 part about await should be removed. I Filed #926

Contributor

chicoxyzzy commented May 31, 2017

@bathos I think you are right. It seems like A.1 part about await should be removed. I Filed #926

@bterlson bterlson closed this in #926 Jun 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment