| argument-object.js |
---
esid: sec-temporal.plainyearmonth.from
description: An object argument
includes: [temporalHelpers.js]
features: [Temporal]
--- |
980 |
| 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 |
| 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]
--- |
895 |
| 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 |
| 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]
--- |
4338 |
| 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]
--- |
4596 |
| shell.js |
---
description: |
This defines helper objects and functions for testing Temporal.
defines: [TemporalHelpers]
features: [Symbol.species, Symbol.iterator, Temporal]
--- |
47073 |