Bug 174756
| Summary: | [JSC] yield* in sync generators must reuse iterator result object received from inner iterator | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | GSkachkov <gskachkov> |
| Component: | JavaScriptCore | Assignee: | 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
```
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
<rdar://problem/113884618>