tor-browser

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

reference-date-noniso-calendar.js (909B)


      1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
      2 // Copyright (C) 2023 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.plainmonthday.from
      7 description: Verify that the result of ToTemporalMonthDay preserves year information for Non-ISO calendars.
      8 info: |
      9    sec-temporal.plainmonthday.from step 3:
     10      3. Return ? ToTemporalMonthDay(_item_, _options_).
     11    sec-temporal-totemporalmonthday step 11.:
     12      11. Set result to ? CreateTemporalMonthDay(_result_.[[Month]], _result_.[[Day]], _calendar_, _result_.[[Year]]).
     13 includes: [temporalHelpers.js]
     14 features: [Temporal]
     15 ---*/
     16 
     17 const pmd = Temporal.PlainMonthDay.from("2023-01-01[u-ca=hebrew]")
     18 TemporalHelpers.assertPlainMonthDay(pmd, "M04", 8); // 2023-01-01 corresponds to 8 Tevet in Hebrew Calendar.
     19 
     20 reportCompare(0, 0);