tor-browser

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

maxConvertAllArgs.js (286B)


      1 //Bug 818620
      2 
      3 load(libdir + "asserts.js");
      4 
      5 assertThrowsInstanceOf(function () {
      6    Math.max(NaN, { valueOf: function () { throw new Error() } });
      7 }, Error);
      8 
      9 assertThrowsInstanceOf(function () {
     10    Math.min(NaN, { valueOf: function () { throw new Error() } });
     11 }, Error);