```
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 *
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss