Skip to content

Commit

Permalink
Editorial: Use record field names in description of CalendarResolveFi…
Browse files Browse the repository at this point in the history
…elds

The description still used property names, but that is not correct anymore
because we are dealing with a Calendar Fields Record, not an Object.
  • Loading branch information
ptomato committed Sep 20, 2024
1 parent 2b48401 commit aca9c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -1349,10 +1349,10 @@ <h1>
<dl class="header">
<dt>description</dt>
<dd>
It performs implementation-defined processing to validate that _fields_ (which describes a date or partial date in the built-in calendar identified by _calendar_) is sufficiently complete to satisfy _type_ and not internally inconsistent, and mutates _fields_ into acceptable input for <emu-xref href="#sec-temporal-calendardatetoiso" title></emu-xref> or <emu-xref href="#sec-temporal-calendarmonthdaytoisoreferencedate" title></emu-xref> by merging data that can be represented in multiple forms into standard properties and removing redundant properties (for example, merging *"month"* and *"monthCode"* into *"month"* and merging *"era"* and *"eraYear"* into *"year"*).
It performs implementation-defined processing to validate that _fields_ (which describes a date or partial date in the built-in calendar identified by _calendar_) is sufficiently complete to satisfy _type_ and not internally inconsistent, and mutates _fields_ into acceptable input for <emu-xref href="#sec-temporal-calendardatetoiso" title></emu-xref> or <emu-xref href="#sec-temporal-calendarmonthdaytoisoreferencedate" title></emu-xref> by merging data that can be represented in multiple forms into standard fields and removing redundant fields (for example, merging [[Month]] and [[MonthCode]] into [[Month]] and merging [[Era]] and [[EraYear]] into [[Year]]).
</dd>
</dl>
<p>The operation throws a *TypeError* exception if the fields of _fields_ are insufficient to identify a unique instance of _type_ in the calendar (e.g., when at least one field in each combination capable of determining some part of its data is ~unset~) or a *RangeError* exception if the fields of _fields_ are internally inconsistent within the calendar (e.g., when redundant properties such as *"month"* and *"monthCode"* are both present but with conflicting data). For example:</p>
<p>The operation throws a *TypeError* exception if the fields of _fields_ are insufficient to identify a unique instance of _type_ in the calendar (e.g., when at least one field in each combination capable of determining some part of its data is ~unset~) or a *RangeError* exception if the fields of _fields_ are internally inconsistent within the calendar (e.g., when redundant fields such as [[Month]] and [[MonthCode]] are both not ~unset~ but with conflicting data). For example:</p>
<ul>
<li>If _type_ is ~date~ or ~month-day~ and ~day~ in the calendar has an interpretation analogous to ISO 8601 and _fields_.[[Day]] is ~unset~.</li>
<li>If ~month~ and ~month-code~ in the calendar have interpretations analogous to ISO 8601 and either the corresponding values for both are ~unset~ or neither value is ~unset~ but they do not identify the same month.</li>
Expand Down

0 comments on commit aca9c79

Please sign in to comment.