summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/AsyncIterator/constructor-throw-without-new.js
blob: 699bbed007a614ff7d0e3532df117e044f1b76a7 (plain)
1
2
3
4
5
6
7
8
9
// |reftest| skip-if(!this.hasOwnProperty('AsyncIterator')) -- AsyncIterator is not enabled unconditionally
/*---
  AsyncIterator constructor throws when called without new.
---*/

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

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