tor-browser

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

bug732857.js (930B)


      1 // Binary: cache/js-dbg-32-1fd6c40d3852-linux
      2 // Flags: --ion-eager
      3 //
      4 load(libdir + "immutable-prototype.js");
      5 
      6 function TestCase(n, d, e, a) {};
      7 
      8 if (globalPrototypeChainIsMutable())
      9  this.__proto__ = [];
     10 
     11 var msPerDay =   86400000;
     12 var TIME_1900  = -2208988800000;
     13 function TimeFromYear( y ) {
     14  return ( msPerDay * DayFromYear(y) );
     15 }
     16 function DayFromYear( y ) {
     17  return ( 365*(y-1970) +
     18           Math.floor((y-1601)/400) );
     19 }
     20 function YearFromTime( t ) {
     21  var sign = ( t < 0 ) ? -1 : 1;
     22  var year = ( sign < 0 ) ? 1969 : 1970;
     23  return ( year );
     24 }
     25 var SECTION = "15.9.5.10";
     26 addTestCase( TIME_1900 );
     27 function addTestCase( t ) {
     28  var start = TimeFromYear(YearFromTime(t));
     29  var stop  = TimeFromYear(YearFromTime(t) + 1);
     30  for (var d = start; d < stop; d += msPerDay) {
     31    new TestCase( SECTION,
     32                  (new Date( SECTION   ? "Failed" : prototype +=  "'abc'.search(new RegExp('^'))") ).getDate() );
     33  }
     34 }