blob: b664d25729eef32a76ef5dce03a015a1b3206cb0 (
plain)
1
2
3
4
5
6
7
8
9
|
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator'))
const reducer = (x, y) => 0;
async function *gen() {}
gen().reduce(reducer, 1).then(result => assertEq(result, 1));
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|