Bug 174756 - [JSC] yield* in sync generators must reuse iterator result object received from inner iterator
Summary: [JSC] yield* in sync generators must reuse iterator result object received fr...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Alexey Shvayka
URL:
Keywords: InRadar
Depends on: 263031
Blocks: 262405
  Show dependency treegraph
 
Reported: 2017-07-22 14:43 PDT by GSkachkov
Modified: 2023-10-14 18:59 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>