2.1.21 [ECMA-262/7] Section 15.1.1 Static Semantics: Early Errors
V0069: Duplicate function and generator function entries are allowed in LexicallyDeclaredNames of ScriptBody
The specification states:
-
15.1.1 Static Semantics: Early Errors Script : ScriptBody • It is a Syntax Error if the LexicallyDeclaredNames of ScriptBody contains any duplicate entries. • It is a Syntax Error if any element of the LexicallyDeclaredNames of ScriptBody also occurs in the VarDeclaredNames of ScriptBody.
EdgeHTML Mode
Duplicate function and generator function entries are allowed in LexicallyDeclaredNames of ScriptBody.