Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // Iterator.prototype.next throws if applied to a non-iterator that inherits from an iterator.
3 load(libdir + "asserts.js");
4 load(libdir + "iteration.js");
6 var it = [1, 2][std_iterator]();
7 var v = Object.create(it);
8 assertThrowsInstanceOf(function () { Iterator.prototype.next.call(v); }, TypeError);