Status: New
Owner: ----
New issue 3422 by oao.hika...@gmail.com: yield* iterable throw
http://code.google.com/p/v8/issues/detail?id=3422
*source*
function* gen() {
yield* [1, 2, 3]
}
var iter = gen()
iter.next()
*current (V8 3.28.13.1)*
TypeError: undefined is not a function
(V8 expect "iterator")
*expected*
{value: 1, done: false}
(shoud expect "iterable")
*spec*
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-generator-function-definitions-runtime-semantics-evaluation
YieldExpression : yield * AssignmentExpression
4. Let iterator be GetIterator(value).
`GetIterator(iterable)` call the iterable's @@iterator method, and return a
result iterator.
The expression don't expect a iterator directly.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.