blob: b7a0d56d5c746dedb960f948a16cc46ae4efb181 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// |reftest| skip-if(!this.hasOwnProperty('Iterator'))
// Re-entering the map() generator from the called mapper fails.
let iterator;
function mapper(x) {
let n = iterator.next();
return x;
}
iterator = [0].values().map(mapper);
assertThrowsInstanceOf(iterator.next, TypeError);
if (typeof reportCompare == 'function')
reportCompare(0, 0);
|