Debian Codegraph @

js/src/tests/non262/AsyncIterator/constructor-throw-when-called-directly.js

raw
1 // |reftest| skip-if(!this.hasOwnProperty('AsyncIterator'))
2 /*---
3 AsyncIterator constructor throws when called directly.
4 ---*/
5
6 assertThrowsInstanceOf(() => new AsyncIterator(), TypeError);
7
8 if (typeof reportCompare === 'function')
9 reportCompare(0, 0);