12.2.0 Semantics
12.2.0.2 IsFunctionDefinition handles CoverParenthesizedExpressionAndArrowParameterList, but there is no HasName static semantics for CoverParenthesizedExpressionAndArrowParameterList which prevents evaluation of 14.1.9 IsAnonymousFunctionDefinition, step 2.
---
Static Semantics: HasName
PrimaryExpression : CoverParenthesizedExpressionAndArrowParameterList
1. Let expr be CoveredParenthesizedExpression of CoverParenthesizedExpressionAndArrowParameterList.
2. Return HasName of expr.
---
Maybe it's also required to check IsFunctionDefinition again?
---
Static Semantics: HasName
PrimaryExpression : CoverParenthesizedExpressionAndArrowParameterList
1. Let expr be CoveredParenthesizedExpression of CoverParenthesizedExpressionAndArrowParameterList.
2. If IsFunctionDefinition of expr is false, return false.
3. Return HasName of expr.
---
fixed in rev37 editor's draft
In Rev37