// |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally // Copyright (C) 2025 Igalia, S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.plainyearmonth.from description: Basic functionality of resolving fields in hebrew calendar features: [Temporal, Intl.Era-monthcode] includes: [temporalHelpers.js] ---*/ const calendar = "hebrew"; const options = { overflow: "reject" }; const commonYear = 5783; for (let month = 1; month < 13; month++) { const monthCode = `M${String(month).padStart(2, '0')}`; const startOfMonth = Temporal.PlainYearMonth.from({ year: commonYear, month, calendar }, options); TemporalHelpers.assertPlainYearMonth( startOfMonth, commonYear, month, monthCode, `${monthCode} in common year`, "am", commonYear, null ); } reportCompare(0, 0);