archives

« Bugzilla Issues Index

#2583 — 15.2.0.1 Early Errors, 15.2.0.10 LexicallyDeclaredNames: `export VariableStatement` should not be lexically declared name


15.2.0.1 Static Semantics: Early Errors

> It is a Syntax Error if any element of the LexicallyDeclaredNames of
> ModuleItemList also occurs in the VarDeclaredNames of ModuleItemList.


15.2.0.10 Static Semantics: LexicallyDeclaredNames

> ModuleItem: ExportDeclaration : Return the BoundNames of ExportDeclaration.


15.2.0.10 needs to exclude `export VariableStatement` from the lexically declared names, otherwise the early error restriction is always true for `export VariableStatement`.


fixed in rev23 editor's draft


fixed in rev23 draft