constructor-throw-when-called-directly.js (257B)
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);