Bug 174756 - [ES6] Generator with yield * removed property in result from `next`
Summary: [ES6] Generator with yield * removed property in result from `next`
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 166695
  Show dependency treegraph
 
Reported: 2017-07-22 14:43 PDT by GSkachkov
Modified: 2017-07-22 14:44 PDT (History)
3 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();
```