tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

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);