tor-browser

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

any-stack-overflow.js (375B)


      1 // Bug 1646317 - Don't assert on stack overflow under Promise.any().
      2 
      3 if ("ignoreUnhandledRejections" in this) {
      4  ignoreUnhandledRejections();
      5 }
      6 
      7 Array.prototype[Symbol.iterator] = function*() {
      8  let rejected = Promise.reject(0);
      9  let p = Promise.any([rejected]);
     10 }
     11 new Set(Object.keys(this));
     12 new Set(Object.keys(this));
     13 
     14 this.reportCompare && reportCompare(true, true);