Bug 174756

Summary: [JSC] yield* in sync generators must reuse iterator result object received from inner iterator
Product: WebKit Reporter: GSkachkov <gskachkov>
Component: JavaScriptCoreAssignee: Alexey Shvayka <ashvayka>
Status: NEW    
Severity: Normal CC: ashvayka, caitp, mark.lam, saam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 263031    
Bug Blocks: 262405    

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
Radar WebKit Bug Importer
Comment 1 2023-08-14 19:07:36 PDT
Note You need to log in before you can comment on or make changes to this bug.