summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Iterator/prototype/some/return-false-if-none-match.js
blob: 00fab9424523212f65a35482bc047698bf863ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally

const iter = [1, 3, 5].values();
const fn = (value) => value % 2 == 0;

assertEq(iter.some(fn), false);

assertEq([].values().some(x => x), false);

if (typeof reportCompare === 'function')
  reportCompare(0, 0);