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