Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upMissing IsFunctionDefinition for anonymous FunctionExpression #1139
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
ljharb
assigned
bterlson
Mar 20, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
See #536 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jorendorff commentedMar 20, 2018
See 14.1.12. It only seems to be specified for the production where the BindingIdentifier is present. Likewise, GeneratorExpression (14.4.8) and AsyncGeneratorExpression (14.5.8) only specify IsFunctionDefinition for the production with BindingIdentifier.
The corresponding spec for async functions, 14.7.8, lists both productions.
I think either the other three sections should be changed to list both productions, like 14.7.8; or else all four should be changed to use
_opt.