archives

« Bugzilla Issues Index

#1968 — 12.1.5: "yield" should be allowed in Object Initialisers


12.1.5.1 Static Semantics: Early Errors

PropertyDefinition : IdentifierName
- It is a Syntax Error if IdentifierName is a ReservedWord.



But "yield" is now a ReservedWord, that means `({yield})` is not allowed, but it should be allowed in non-strict mode.


fixed in rev20 editor's draft


fixed in rev20 draft, Oct. 28, 2013