Skip to content

Commit 26d7e93

Browse files
committed
Add missing "It performs the following steps when called"
1 parent a1a76e0 commit 26d7e93

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4660,6 +4660,7 @@ <h1><span class="secnum">4.1.11</span> CalendarDateToISO ( <var>calendar</var>,
46604660
<h1><span class="secnum">4.1.12</span> CalendarExtraFields ( <var>calendar</var>, <var>fields</var> )</h1>
46614661
<p>The <emu-xref href="#implementation-defined"><a href="https://tc39.es/ecma262/#implementation-defined">implementation-defined</a></emu-xref> abstract operation CalendarExtraFields takes arguments <var>calendar</var> (a <emu-xref href="#sec-ecma402-calendar-types" id="_ref_32"><a href="#sec-ecma402-calendar-types">calendar type</a></emu-xref>) and <var>fields</var> (a <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref> of values from the Enumeration Key column of <emu-xref href="#table-temporal-calendar-fields-record-fields"><a href="https://tc39.es/proposal-temporal/#table-temporal-calendar-fields-record-fields">Table 19</a></emu-xref>) and returns a <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref> of values from the Enumeration Key column of <emu-xref href="#table-temporal-calendar-fields-record-fields"><a href="https://tc39.es/proposal-temporal/#table-temporal-calendar-fields-record-fields">Table 19</a></emu-xref>. It characterizes calendar-specific fields that are relevant for the provided <var>fields</var> in the built-in calendar identified by <var>calendar</var>.</p>
46624662
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-calendarextrafields"><a href="https://tc39.es/proposal-temporal/#sec-temporal-calendarextrafields">Temporal, 12.2.22</a></emu-xref>.</p>
4663+
<p>It performs the following steps when called:</p>
46634664
<emu-alg><ol><li>If <var>fields</var> contains an element equal to <emu-const>year</emu-const> and <emu-xref aoid="CalendarSupportsEra" id="_ref_33"><a href="#sec-temporal-calendarsupportsera">CalendarSupportsEra</a></emu-xref>(<var>calendar</var>) is <emu-val>true</emu-val>, then<ol><li>Append <emu-const>era</emu-const> and <emu-const>era-year</emu-const> to <var>fields</var>.</li></ol></li><li>Return <var>fields</var>.</li></ol></emu-alg>
46644665
</emu-clause>
46654666
@@ -4670,6 +4671,7 @@ <h1><span class="secnum">4.1.13</span> CalendarFieldKeysToIgnore ( <var>calendar
46704671
A field always invalidates at least itself.
46714672
</p>
46724673
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-calendarfieldkeystoignore"><a href="https://tc39.es/proposal-temporal/#sec-temporal-calendarfieldkeystoignore">Temporal, 12.2.23</a></emu-xref>.</p>
4674+
<p>It performs the following steps when called:</p>
46734675
<emu-alg><ol><li>Let <var>ignoredKeys</var> be an empty <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref>.</li><li>For each element <var>key</var> of <var>keys</var>, do<ol><li>If <var>key</var> is <emu-const>month</emu-const>, append <emu-const>month-code</emu-const> to <var>ignoredKeys</var>.</li><li>Else if <var>key</var> is <emu-const>month-code</emu-const>, append <emu-const>month</emu-const> to <var>ignoredKeys</var>.</li><li>If <var>key</var> is one of <emu-const>era</emu-const>, <emu-const>era-year</emu-const>, or <emu-const>year</emu-const> and <emu-xref aoid="CalendarSupportsEra" id="_ref_35"><a href="#sec-temporal-calendarsupportsera">CalendarSupportsEra</a></emu-xref>(<var>calendar</var>) is <emu-val>true</emu-val>, then<ol><li>Append <emu-const>era</emu-const>, <emu-const>era-year</emu-const>, and <emu-const>year</emu-const> to <var>ignoredKeys</var>.</li></ol></li><li>Else,<ol><li>Append <var>key</var> to <var>ignoredKeys</var>.</li></ol></li></ol></li><li>NOTE: While <var>ignoredKeys</var> can have duplicate elements, this is not intended to be meaningful. This specification only checks whether particular keys are or are not members of the list.</li><li>Return <var>ignoredKeys</var>.</li></ol></emu-alg>
46744676
</emu-clause>
46754677
</emu-clause>

spec.emu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ contributors: Google, Ecma International
964964
<dd>It characterizes calendar-specific fields that are relevant for the provided _fields_ in the built-in calendar identified by _calendar_.</dd>
965965
</dl>
966966
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-calendarextrafields"></emu-xref>.</p>
967+
<p>It performs the following steps when called:</p>
967968
<emu-alg>
968969
1. If _fields_ contains an element equal to ~year~ and CalendarSupportsEra(_calendar_) is *true*, then
969970
1. Append ~era~ and ~era-year~ to _fields_.
@@ -986,6 +987,7 @@ contributors: Google, Ecma International
986987
</dd>
987988
</dl>
988989
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-calendarfieldkeystoignore"></emu-xref>.</p>
990+
<p>It performs the following steps when called:</p>
989991
<emu-alg>
990992
1. Let _ignoredKeys_ be an empty List.
991993
1. For each element _key_ of _keys_, do

0 commit comments

Comments
 (0)