Hemanth H.M (2013-12-07T07:21:07.000Z)
```
function* FileReader(){
    // Some stream code on node;
    stream.on('data',function*(data) {
          yield data;
    });
}
```
Now :

```
var reader = FileReader();
console.log(reader.next()); // Would say { value: undefined, done: true }
```

The question being, where will the anonymous function yield the results to ?


P.S : This might be an IRC question, but wanted dig bit deeper than just
solving this issue.


-- 
*'I am what I am because of who we all are'*
h3manth.com <http://www.h3manth.com>
*-- Hemanth HM *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131207/69d4d2e2/attachment.html>
forbes at lindesay.co.uk (2013-12-07T17:58:08.726Z)
```js
function* FileReader(){
    // Some stream code on node;
    stream.on('data',function*(data) {
          yield data;
    });
}
```

Now :

```js
var reader = FileReader();
console.log(reader.next()); // Would say { value: undefined, done: true }
```

The question being, where will the anonymous function yield the results to ?


P.S : This might be an IRC question, but wanted dig bit deeper than just
solving this issue.