archives

« Bugzilla Issues Index

#4060 — 12.1.1 Early Errors: Unnecessary restriction for GeneratorBody


12.1.1 Static Semantics: Early Errors

IdentifierReference[Yield] : yield
BindingIdentifier[Yield] : yield
LabelIdentifier[Yield] : yield


> It is a Syntax Error if the code match by this production is within the
> GeneratorBody of a GeneratorMethod, GeneratorDeclaration, or
> GeneratorExpression.

This item can be removed, code within a GeneratorBody always uses the [Yield] parameter.


fixed in rev35 editor's draft


fixed in rev35