blob: 62ddce6eb7f3766c269cf9c710ca9e6d74452083 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally
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);
|