This code generates an error:
function *giveNumbers() { [1, 2, 3].forEach(function(item) { yield item; }) }
This is probabl
you can use the yield * syntax.
yield *
function *giveNumbers() { yield * [1, 2, 3].map(function(item) { return item; }) }