blob: 2109be5fd64f266d3987028d1e103761810ddbdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator'))
const log = [];
const fn = (value) => log.push(value);
const iter = [1, 2, 3].values();
assertEq(iter.forEach(fn), undefined);
assertEq(log.join(','), '1,2,3');
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|