archives

« Bugzilla Issues Index

#2917 — 5.1.5: incorrect IterationStatement expansion


In section 5.1.5, there are missing semi-colons.
IterationStatement :
for ( LexicalDeclaration Expressionopt ; Expressionopt ) Statement
is a convenient abbreviation for:
IterationStatement :
for ( LexicalDeclaration Expressionopt ) Statement
for ( LexicalDeclaration Expression ; Expressionopt ) Statement
which in turn is an abbreviation for:
IterationStatement :
for ( LexicalDeclaration ) Statement
for ( LexicalDeclaration Expression) Statement
for ( LexicalDeclaration Expression ; ;) Statement
for ( LexicalDeclaration Expression ; Expression) Statement

should be:

IterationStatement :
for ( LexicalDeclaration Expressionopt ; Expressionopt ) Statement
is a convenient abbreviation for:
IterationStatement :
for ( LexicalDeclaration ; Expressionopt ) Statement
for ( LexicalDeclaration Expression ; Expressionopt ) Statement
which in turn is an abbreviation for:
IterationStatement :
for ( LexicalDeclaration ; ) Statement
for ( LexicalDeclaration ; Expression) Statement
for ( LexicalDeclaration Expression ;) Statement
for ( LexicalDeclaration Expression ; Expression) Statement


Allen, Guptha is working at Mozilla in Mountain View. We're working together and he might decide to implement some new ES6 features for us.

Guptha, Allen is the editor of the ECMAScript Language Specification. He also works for Mozilla.


fixed in rev26 editor's draft


in rev26