// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally const reducer = (acc, value) => acc + value; const iterator = [1, 2, 3].values(); assertEq(iterator.reduce(reducer, 0), 6); if (typeof reportCompare === 'function') reportCompare(0, 0);