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

Editorial: Merge the RHSs of AsyncFunctionExpression #2275

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

jmdyck
Copy link
Collaborator

@jmdyck jmdyck commented Jan 14, 2021

The nonterminals:

  • FunctionExpression
  • ClassExpression
  • GeneratorExpression
  • AsyncGeneratorExpression

are all defined with a single RHS involving an optional BindingIdentifier.

But AsyncFunctionExpression is defined with two RHSs, one with a BindingIdentifier and one without. (It's been that way since it was introduced in PR #692.) I can't see any reason for it to be not like the others.

@jmdyck
Copy link
Collaborator Author

jmdyck commented Jan 16, 2021

(force-pushed to resolve merge conflicts)

@ljharb ljharb requested review from michaelficarra, syg and a team January 16, 2021 06:17
@bakkot bakkot added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Jan 21, 2021
The nonterminals:
- FunctionExpression
- ClassExpression
- GeneratorExpression
- AsyncGeneratorExpression

are all defined with a single RHS involving an optional BindingIdentifier.

But AsyncFunctionExpression is defined with two RHSs, one with a BindingIdentifier and one without.
(It's been that way since it was introduced in PR tc39#692)
I can't see any reason for it to be not like the others.
@ljharb ljharb force-pushed the AsyncFunctionExpression branch from 42b9b1f to 7dab950 Compare January 25, 2021 20:01
@ljharb ljharb merged commit 7dab950 into tc39:master Jan 25, 2021
@jmdyck jmdyck deleted the AsyncFunctionExpression branch January 26, 2021 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants