Closed Bug 880063 Opened 11 years ago Closed 9 years ago

Nested yield expressions should be allowed

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 880447

People

(Reporter: bbenvie, Unassigned)

References

Details

> function x(){ yield yield; }
> // SyntaxError: missing ; before statement

> function x(){ yield (yield); }
> // works

`yield yield` works in the V8 implementation of generators and I'm pretty sure it's allowed by the ES6 spec.
Blocks: es6:let
What does the current spec say?
Assignee: general → nobody
it's already fixed by bug 880447.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Resolution: FIXED → DUPLICATE
You need to log in before you can comment on or make changes to this bug.