blob: 118436d70bfc1e503508d907bbc5f023d8dfa896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator'))
async function* gen() {
yield 1;
yield 3;
yield 5;
}
const fn = x => x % 2 == 0;
gen().some(fn).then(result => assertEq(result, false));
async function* empty() {}
empty().some(x => x).then(result => assertEq(result, false));
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|