summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/AsyncIterator/prototype/toArray/iterator-empty.js
blob: d8eec0454d50f9cbc69e40a6639cc7b7209eae41 (plain)
1
2
3
4
5
6
7
8
9
10
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator')) 

async function* gen() {}
gen().toArray().then(array => {
  assertEq(Array.isArray(array), true);
  assertEq(array.length, 0);
});

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