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    

Description GSkachkov 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();
```
Comment 1 Radar WebKit Bug Importer 2023-08-14 19:07:36 PDT
<rdar://problem/113884618>