> Le 27 juil. 2016 à 06:31, Michael Theriot <michael.lee.ther...@gmail.com> a 
> écrit :
> 
> There are many things I still don't understand about iterators...
> 
> ```js
> var iter = [].values();
> iter[Symbol.iterator]() === iter;
> 
> var weirdFunction = iter[Symbol.iterator];
> weirdFunction.call(iter) === iter;
> 
> var weirdInstance = new weirdFunction(); // what is this??
> ```

My intuition says: "TypeError: weirdFunction is not a constructor".

—Claude

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to