constructor-throw-without-new.js (304B)
1 // |reftest| skip-if(!this.hasOwnProperty('AsyncIterator')) -- AsyncIterator is not enabled unconditionally 2 /*--- 3 AsyncIterator constructor throws when called without new. 4 ---*/ 5 6 assertThrowsInstanceOf(() => AsyncIterator(), TypeError); 7 8 if (typeof reportCompare === 'function') 9 reportCompare(0, 0);