blob: 30c15a48fec8cadc2bfbf4bde955528a8c72b6f3 (
plain)
1
2
3
4
5
6
7
8
9
|
// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally
const reducer = (x, y) => 0;
const iterator = [].values();
assertEq(iterator.reduce(reducer, 1), 1);
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|