With the change of behavior in Iterator discussed here:
https://groups.google.com/forum/#!topic/v8-users/8LkrofVr0aAIf I have an iterator (natively defined) which supports for ... of loop, what is the equivalent of calling next to advance it?
I hope the following js example demonstrates what I mean:
> myIterable[Symbol.iterator] = function* () {yield 1;}
function* () {yield 1;}
> for (var k of myIterable) print(k);
1
> myIterable[Symbol.iterator];
function* () {yield 1;}
> myIterable[Symbol.iterator].next();
(shell):1: TypeError: myIterable[Symbol.iterator].next is not a function
myIterable[Symbol.iterator].next();
^
TypeError: myIterable[Symbol.iterator].next is not a function
at (shell):1:29