archives

« Bugzilla Issues Index

#813 — 12.6.4: "LexicallyDeclaredNames of ForDeclaration"


In 12.6.4 "The for-in and for-of Statements",
under "Static Semantics: Early Errors",
group 2 bullet 1 says:
It is a Syntax Error if any element of the LexicallyDeclaredNames
of ForDeclaration also occurs in the VarDeclaredNames of Statement.

but LexicallyDeclaredNames is not defined on ForDeclaration.
(And ForDeclaration doesn't participate in any chain productions,
so it can't be defined implicitly.)

Change "LexicallyDeclaredNames" to "BoundNames", I think.


Corrected in rev 11 editor's draft


in October 26, 2012 release draft