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