Bug 167727
| Summary: | [ESNext] Async iteration - Implement yield *: Delegation of async generator | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | GSkachkov <gskachkov> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | chi187, gskachkov, saam, ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 166693 | ||
GSkachkov
Implement yield* Delegation of async generator
https://tc39.github.io/proposal-async-iteration/#sec-asyncgenerator-definitions-evaluation
'''
function* boo() {
yield 1;
yield 2;
}
function* foo() {
yield* boo();
yield 3;
}
var iter = foo();
print(iter.next().value); // 1, done = false
print(iter.next().value); // 2, done = false
print(iter.next().value); // 3, done = false
print(iter.next().value); // undefined, done = true
'''
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
GSkachkov
Fixed in https://bugs.webkit.org/show_bug.cgi?id=175240
*** This bug has been marked as a duplicate of bug 175240 ***