tor-browser

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

islamic-rgsa.js (651B)


      1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
      2 // Copyright (C) 2025 Igalia, S.L. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-temporal.plainyearmonth.prototype.from
      7 description: islamic-rgsa calendar name is not supported
      8 features: [Temporal, Intl.Era-monthcode]
      9 ---*/
     10 
     11 const calendar = "islamic-rgsa";
     12 
     13 assert.throws(RangeError, () =>
     14  Temporal.PlainYearMonth.from({year: 1500, month: 1, calendar}),
     15  "fallback for calendar ID 'islamic-rgsa' only supported in Intl.DateTimeFormat constructor, not Temporal"
     16 );
     17 
     18 reportCompare(0, 0);