WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
174756
[JSC] yield* in sync generators must reuse iterator result object received from inner iterator
https://bugs.webkit.org/show_bug.cgi?id=174756
Summary
[JSC] yield* in sync generators must reuse iterator result object received fr...
GSkachkov
Reported
2017-07-22 14:43:29 PDT
``` var O = { [Symbol.iterator]() { return this; }, next() { return { floof: 1, done: false, value: 1 }; } }; function* g() { yield* O; } let it = g(); it.next(); // { done: false, value: 1; }, BUT should be { floof: 1, done: false, value: 1 }, same object returned from .next(); ```
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-08-14 19:07:36 PDT
<
rdar://problem/113884618
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug