2.1.31 [ECMA-262/6] Section 13.7.4.1 Static Semantics: Early Errors
V0061: It is not a Syntax Error for the BoundNames of LexicalDeclaration to contain let or const
The specification states:
-
13.7.4.1 Static Semantics: Early Errors IterationStatement : for ( LexicalDeclaration Expression; Expression ) Statement • It is a Syntax Error if any element of the BoundNames of LexicalDeclaration also occurs in the VarDeclaredNames of Statement.
IE11 Mode and EdgeHTML Mode (All versions)
It is not a Syntax Error for the BoundNames of LexicalDeclaration to contain let or const.