blob: 1442d225577a94f0cd78380c148df4421e8b20ce (
plain)
1
2
3
4
5
6
7
8
|
// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally
assertThrowsInstanceOf(Iterator.prototype.toArray.bind(undefined), TypeError);
assertThrowsInstanceOf(Iterator.prototype.toArray.bind({}), TypeError);
assertThrowsInstanceOf(Iterator.prototype.toArray.bind({next: 0}), TypeError);
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|