summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/AsyncIterator/constructor-throw-when-called-directly.js
blob: 8abc132282bfe9f6e6fda45de59be48c89feca9f (plain)
1
2
3
4
5
6
7
8
9
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator'))
/*---
  AsyncIterator constructor throws when called directly.
---*/

assertThrowsInstanceOf(() => new AsyncIterator(), TypeError);

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