tor-browser

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

date-local-time-slots-after-realm-time-zone-change-1.js (429B)


      1 // |jit-test| skip-if: typeof Intl === 'undefined'
      2 
      3 for (var i = 0; i < 250; ++i) {
      4  // Create new Date objects.
      5  var d = new Date(2000, 0, 1, i & 3);
      6 
      7  // |getHours| is inlined if no realm time zone override is present.
      8  assertEq(d.getHours(), i & 3);
      9 
     10  if (i === 200) {
     11    // Modify the realm time zone. This discards all JIT code and |getHours| is
     12    // no longer inlinable.
     13    setRealmTimeZone("Europe/Paris");
     14  }
     15 }