2.1.15 [ECMA-ES2017] Section 13.7.5.1 Static Semantics: Early Errors
V0129: It is not a Syntax Error if an element of the BoundNames of ForDeclaration also occurs in the VarDeclaredNames of Statement
The specification states:
-
13.7.5.1 Static Semantics: Early Errors ... IterationStatement : for ( ForDeclaration in Expression ) Statement for ( ForDeclaration of AssignmentExpression ) Statement ... • It is a Syntax Error if the BoundNames of ForDeclaration contains "let". • It is a Syntax Error if any element of the BoundNames of ForDeclaration also occurs in the VarDeclaredNames of Statement. • It is a Syntax Error if the BoundNames of ForDeclaration contains any duplicate entries.
EdgeHTML Mode
It is not a Syntax Error if an element of the BoundNames of ForDeclaration also occurs in the VarDeclaredNames of Statement.