blob: a6208504b60812bd0ad92f2c50d380c49345c83b (
plain)
1
2
3
4
5
6
7
|
// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally
assertEq([1, 2, 3].values().reduce((x, y) => `(${x}+${y})`, 0), '(((0+1)+2)+3)');
assertEq([1, 2, 3].values().reduce((x, y) => `(${x}+${y})`), '((1+2)+3)');
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|