Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normative: Apply chain rule to IsFunctionDefinition UnaryExpression: …
…UpdateExpression (#706) Since a *FunctionExpression* is a *PrimaryExpression*, I believe returning `false` in `IsFunctionDefinition` for every production of *UnaryExpression* is incorrect. It's also not consistent with the rules for every other expression. Otherwise I think `IsFunctionDefinition` would return `false` when evaluating initializers (e.g. `function foo(bar=function(){}) {}`), after "unrolling" all production rules.
- Loading branch information