André Bargull (2013-08-23T09:07:42.000Z)
`g.next()` returns `{value: [1, 2, 3], done: false}` for me, so .value 
is needed here. Or do you mean something else?

Thanks,
André

> No .value anywhere, though.
>
> /be
>
> Forbes Lindesay wrote:
> >/  It already is dealt with via destructuring assignments:
> />/
> />/  ```js
> />/  function* gen() {
> />/     var {x, y, z} = yield [1, 2, 3]
> />/     return x&&  y || z
> />/  }
> />/  var g = gen()
> />/  var [a, b, c] = g.next().value
> />/  assert(a === 1)
> />/  assert(b === 2)
> />/  assert(c === 3)
> />/  var res = g.send({x: true, y: false, z: true}).value
> />/  assert(res === true)
> />/  ```/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130823/2b77055b/attachment.html>
domenic at domenicdenicola.com (2013-08-23T13:35:17.061Z)
`g.next()` returns `{value: [1, 2, 3], done: false}` for me, so .value 
is needed here. Or do you mean something else?