| argument-object.js |
---
esid: sec-temporal.plainyearmonth.from
description: An object argument
includes: [temporalHelpers.js]
features: [Temporal]
--- |
980 |
| basic-hebrew.js |
---
esid: sec-temporal.plainyearmonth.from
description: Basic functionality of resolving fields in hebrew calendar
features: [Temporal, Intl.Era-monthcode]
includes: [temporalHelpers.js]
--- |
902 |
| browser.js |
|
0 |
| calendar-not-supporting-eras.js |
---
esid: sec-temporal.plainyearmonth.from
description: era and eraYear are ignored (for calendars not using eras)
includes: [temporalHelpers.js]
features: [Temporal]
--- |
1512 |
| calendarresolvefields-error-ordering-chinese.js |
---
esid: sec-temporal.plainyearmonth.from
description: CalendarResolveFields throws TypeError before RangeError (chinese calendar)
info: |
CalendarResolveFields validates field types before validating field ranges,
ensuring TypeError is thrown before RangeError when both conditions exist.
features: [Temporal, Intl.Era-monthcode]
--- |
2384 |
| calendarresolvefields-error-ordering-gregory.js |
---
esid: sec-temporal.plainyearmonth.from
description: CalendarResolveFields throws TypeError before RangeError (gregory calendar)
info: |
CalendarResolveFields validates field types before validating field ranges,
ensuring TypeError is thrown before RangeError when both conditions exist.
features: [Temporal, Intl.Era-monthcode]
--- |
1482 |
| calendarresolvefields-error-ordering-japanese.js |
---
esid: sec-temporal.plainyearmonth.from
description: CalendarResolveFields throws TypeError before RangeError (japanese calendar)
info: |
CalendarResolveFields validates field types before validating field ranges,
ensuring TypeError is thrown before RangeError when both conditions exist.
features: [Temporal, Intl.Era-monthcode]
--- |
2392 |
| canonicalize-calendar.js |
---
esid: sec-temporal.plainyearmonth.from
description: Calendar ID is canonicalized
features: [Temporal]
--- |
612 |
| canonicalize-era-codes-non-gregorian.js |
---
esid: sec-temporal-plainyearmonth.from
description: Calendar era code is canonicalized (non-Gregorian calendars)
features: [Temporal, Intl.Era-monthcode]
--- |
953 |
| canonicalize-era-codes.js |
---
esid: sec-temporal.plainyearmonth.from
description: Calendar era code is canonicalized
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
915 |
| era-boundary-ethiopic.js |
---
esid: sec-temporal.plainyearmonth.from
description: Non-positive era years are remapped in ethiopic calendar
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
1379 |
| era-boundary-gregory.js |
---
esid: sec-temporal.plainyearmonth.from
description: Non-positive era years are remapped in gregory calendar
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
1346 |
| era-boundary-islamic-civil.js |
---
esid: sec-temporal.plainyearmonth.from
description: Non-positive era years are remapped in islamic-civil calendar
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
1370 |
| era-boundary-islamic-tbla.js |
---
esid: sec-temporal.plainyearmonth.from
description: Non-positive era years are remapped in islamic-tbla calendar
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
1368 |
| era-boundary-islamic-umalqura.js |
---
esid: sec-temporal.plainyearmonth.from
description: Non-positive era years are remapped in islamic-umalqura calendar
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
1376 |
| era-boundary-japanese.js |
---
esid: sec-temporal.plainyearmonth.from
description: >
Dates in same year or years before era starts should resolve to previous era
(Japanese calendar)
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
7682 |
| era-boundary-roc.js |
---
esid: sec-temporal.plainyearmonth.from
description: Non-positive era years are remapped in roc calendar
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
1362 |
| era-japanese.js |
---
esid: sec-temporal.plainyearmonth.prototype.from
description: >
from works properly with eras (Japanese calendar)
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
1752 |
| extreme-dates.js |
---
esid: sec-temporal.plaindate.from
description: from() gives sensible output at extremes of supported range
features: [Temporal, Intl.Era-monthcode]
includes: [temporalHelpers.js]
--- |
5035 |
| infinity-throws-rangeerror.js |
---
description: Throws if eraYear in the property bag is Infinity or -Infinity
esid: sec-temporal.plainyearmonth.from
includes: [compareArray.js, temporalHelpers.js]
features: [Temporal]
--- |
1108 |
| invalid-month-codes-hebrew.js |
---
esid: sec-temporal.plainyearmonth.from
description: Month codes that are invalid for Hebrew calendar
features: [Temporal, Intl.Era-monthcode]
--- |
862 |
| islamic-rgsa.js |
---
esid: sec-temporal.plainyearmonth.prototype.from
description: islamic-rgsa calendar name is not supported
features: [Temporal, Intl.Era-monthcode]
--- |
651 |
| islamic.js |
---
esid: sec-temporal.plainyearmonth.prototype.from
description: islamic calendar name is not supported
features: [Temporal, Intl.Era-monthcode]
--- |
644 |
| leap-months-hebrew.js |
---
esid: sec-temporal.plainyearmonth.from
description: Test valid leap months when resolving fields in hebrew calendar
features: [Temporal, Intl.Era-monthcode]
includes: [temporalHelpers.js]
--- |
1351 |
| leap-year-hebrew.js |
---
esid: sec-temporal.plainyearmonth.from
description: Basic functionality of resolving fields in hebrew calendar leap year
features: [Temporal, Intl.Era-monthcode]
includes: [temporalHelpers.js]
--- |
1044 |
| non-positive-single-era-year.js |
---
esid: sec-temporal.plainyearmonth.from
description: Non-positive era years in calendars with a single era
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
962 |
| one-of-era-erayear-undefined.js |
---
esid: sec-temporal.plainyearmonth.from
description: Throw a TypeError if only one of era/eraYear fields is present
features: [Temporal]
--- |
695 |
| reference-day-chinese.js |
---
esid: sec-temporal.calendar.prototype.yearmonthfromfields
description: Reference ISO day is chosen to be the first of the calendar month
info: |
6.d. Perform ! CreateDataPropertyOrThrow(_fields_, *"day"*, *1*<sub>𝔽</sub>).
e. Let _result_ be ? CalendarDateToISO(_calendar_.[[Identifier]], _fields_, _options_).
includes: [temporalHelpers.js]
features: [Temporal]
--- |
2863 |
| reference-day-gregory.js |
---
esid: sec-temporal.calendar.prototype.yearmonthfromfields
description: Reference ISO day is chosen to be the first of the calendar month
info: |
6.d. Perform ! CreateDataPropertyOrThrow(_fields_, *"day"*, *1*<sub>𝔽</sub>).
e. Let _result_ be ? CalendarDateToISO(_calendar_.[[Identifier]], _fields_, _options_).
includes: [temporalHelpers.js]
features: [Temporal]
--- |
1552 |
| reference-day-hebrew.js |
---
esid: sec-temporal.calendar.prototype.yearmonthfromfields
description: Reference ISO day is chosen to be the first of the calendar month
info: |
6.d. Perform ! CreateDataPropertyOrThrow(_fields_, *"day"*, *1*<sub>𝔽</sub>).
e. Let _result_ be ? CalendarDateToISO(_calendar_.[[Identifier]], _fields_, _options_).
includes: [temporalHelpers.js]
features: [Temporal]
--- |
2860 |
| reference-day-japanese.js |
---
esid: sec-temporal.calendar.prototype.calendaryearmonthfromfields
description: >
Reference ISO day is chosen to be the first of the calendar month
See https://github.com/tc39/proposal-temporal/issues/3150 for more context.
info: |
1. Let _firstDayIndex_ be the 1-based index of the first day of the month described by _fields_ (i.e., 1 unless the month's first day is skipped by this calendar.)
2. Set _fields_.[[Day]] to _firstDayIndex_.
3. Perform ? CalendarResolveFields(_calendar_, _fields_, ~year-month~).
includes: [temporalHelpers.js]
features: [Temporal]
--- |
1632 |
| remapping-era.js |
---
esid: sec-temporal.plainyearmonth.from
description: Test remapping behaviour of regnal eras
info: |
CalendarYearMonthFromFields:
1. Perform ? CalendarResolveFields(_calendar_, _fields_, ~year-month~).
2. Let _firstDayIndex_ be the 1-based index of the first day of the month
described by _fields_ (i.e., 1 unless the month's first day is skipped by
this calendar.)
3. Set _fields_.[[Day]] to _firstDayIndex_.
4. Let result be ? CalendarDateToISO(_calendar_, _fields_, _overflow_).
CalendarResolveFields:
When the fields of _fields_ are inconsistent with respect to a non-unset
_fields_.[[Era]], it is recommended that _fields_.[[Era]] and
_fields_.[[EraYear]] be updated to resolve the inconsistency by lenient
interpretation of out-of-bounds values (rather than throwing a *RangeError*),
which is particularly useful for consistent interpretation of dates in
calendars with regnal eras.
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
4616 |
| roundtrip-from-property-bag.js |
---
esid: sec-temporal.plainyearmonth.from
description: >
Check that various dates created from a property bag have the expected
properties
includes: [temporalHelpers.js]
features: [Temporal, Intl.Era-monthcode]
--- |
5560 |
| shell.js |
---
description: |
This defines helper objects and functions for testing Temporal.
defines: [TemporalHelpers]
features: [Symbol.species, Symbol.iterator, Temporal]
--- |
47677 |