Comment #5 on issue 3565 by [email protected]: Generator function deviations from ES6
https://code.google.com/p/v8/issues/detail?id=3565

I'm not sure that works in general.  For example:

  var iter1 = (function*(){})();
  var iter2 = Object.create(iter);

iter2 will have the next method of the iter1 -- GeneratorFunction.prototype.next -- but not the "internal slots" corresponding to generator state.

For the same reason:

  var iter3 = [1,2,3][Symbol.iterator]();
  var iter4 = Object.create(iter3);

iter4 has the ArrayIterator next function, but not the ArrayIterator internal state. Or is it the case that "internal state" is allowed to be a non-own-property?

--
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
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to