I am trying to access the property of an object passed back using yield.
function*test() {
console.log(yield)
console.log(yield(true).test)
}
var generator = test()
generator.next({ test: true })
generator.next({ test: true })
generator.next({ test: true })
However, the property is not accessed.
Object { test: true }
Object { test: true }
Am I misunderstanding something, or is this just the way it works and I should just assign the yield result to a temporary variable?