You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/abstractops.html
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -456,7 +456,7 @@ <h1>
456
456
1. If _digitsValue_ is not a Number, then
457
457
1. If ? ToString(_digitsValue_) is not *"auto"*, throw a *RangeError* exception.
458
458
1. Return ~auto~.
459
-
1. If _digitsValue_ is *NaN*, *+∞*<sub>𝔽</sub>, or *-∞*<sub>𝔽</sub>, throw a *RangeError* exception.
459
+
1. If _digitsValue_ is one of *NaN*, *+∞*<sub>𝔽</sub>, or *-∞*<sub>𝔽</sub>, throw a *RangeError* exception.
460
460
1. Let _digitCount_ be floor(ℝ(_digitsValue_)).
461
461
1. If _digitCount_< 0 or _digitCount_ > 9, throw a *RangeError* exception.
462
462
1. Return _digitCount_.
@@ -587,8 +587,8 @@ <h1>
587
587
1. If _value_ is ~unset~, return ~unused~.
588
588
1. If _extraValues_ is present and _extraValues_ contains _value_, return ~unused~.
589
589
1. Let _category_ be the value in the “Category” column of the row of <emu-xrefhref="#table-temporal-units"></emu-xref> whose “Value” column contains _value_. If there is no such row, throw a *RangeError* exception.
590
-
1. If _category_ is ~date~ and _unitGroup_ is ~date~ or ~datetime~, return ~unused~.
591
-
1. If _category_ is ~time~ and _unitGroup_ is ~time~ or ~datetime~, return ~unused~.
590
+
1. If _category_ is ~date~ and _unitGroup_ is either ~date~ or ~datetime~, return ~unused~.
591
+
1. If _category_ is ~time~ and _unitGroup_ is either ~time~ or ~datetime~, return ~unused~.
592
592
1. Throw a *RangeError* exception.
593
593
</emu-alg>
594
594
</emu-clause>
@@ -1809,7 +1809,7 @@ <h1>
1809
1809
</dl>
1810
1810
<emu-alg>
1811
1811
1. Let _number_ be ? ToNumber(_argument_).
1812
-
1. If _number_ is *NaN*, *+∞*<sub>𝔽</sub> or *-∞*<sub>𝔽</sub>, throw a *RangeError* exception.
1812
+
1. If _number_ is one of *NaN*, *+∞*<sub>𝔽</sub>, or *-∞*<sub>𝔽</sub>, throw a *RangeError* exception.
1813
1813
1. Return truncate(ℝ(_number_)).
1814
1814
</emu-alg>
1815
1815
</emu-clause>
@@ -1851,9 +1851,9 @@ <h1>
1851
1851
1. Let _fields_ be an empty Calendar Fields Record with all fields set to ~unset~.
1852
1852
1. Let _calendarDate_ be CalendarISOToDate(_calendar_, _isoDate_).
1853
1853
1. Set _fields_.[[MonthCode]] to _calendarDate_.[[MonthCode]].
1854
-
1. If _type_ is ~month-day~ or ~date~, then
1854
+
1. If _type_ is either ~month-day~ or ~date~, then
1855
1855
1. Set _fields_.[[Day]] to _calendarDate_.[[Day]].
1856
-
1. If _type_ is ~year-month~ or ~date~, then
1856
+
1. If _type_ is either ~year-month~ or ~date~, then
1857
1857
1. Set _fields_.[[Year]] to _calendarDate_.[[Year]].
<p>The operation throws a *TypeError* exception if the non-~unset~ 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 are sufficient but their values are internally inconsistent within the calendar (e.g., when fields such as [[Month]] and [[MonthCode]] have conflicting non-~unset~ values). For example:</p>
1204
1204
<ul>
1205
-
<li>If _type_ is ~date~ or ~month-day~ and "day" in the calendar has an interpretation similar to ISO 8601 and _fields_.[[Day]] is ~unset~.</li>
1205
+
<li>If _type_ is either ~date~ or ~month-day~, and "day" in the calendar has an interpretation similar to ISO 8601 and _fields_.[[Day]] is ~unset~.</li>
1206
1206
<li>If _fields_.[[MonthCode]] identifies a month code that is not valid in any year of the calendar.</li>
1207
1207
<li>If _fields_.[[Month]] and _fields_.[[MonthCode]] are both ~unset~ or neither value is ~unset~ but they do not identify the same month.</li>
1208
1208
<li>If _type_ is ~month-day~ and _fields_.[[MonthCode]] is ~unset~ and a specific year cannot be determined from _fields_.</li>
@@ -1247,9 +1247,9 @@ <h1>
1247
1247
<emu-alg>
1248
1248
1. If _calendar_ is *"iso8601"*, then
1249
1249
1. Let _needsYear_ be *false*.
1250
-
1. If _type_ is ~date~ or_type_ is~year-month~, set _needsYear_ to *true*.
1250
+
1. If _type_ is either ~date~ or ~year-month~, set _needsYear_ to *true*.
1251
1251
1. Let _needsDay_ be *false*.
1252
-
1. If _type_ is ~date~ or_type_ is~month-day~, set _needsDay_ to *true*.
1252
+
1. If _type_ is either ~date~ or ~month-day~, set _needsDay_ to *true*.
1253
1253
1. If _needsYear_ is *true* and _fields_.[[Year]] is ~unset~, throw a *TypeError* exception.
1254
1254
1. If _needsDay_ is *true* and _fields_.[[Day]] is ~unset~, throw a *TypeError* exception.
1255
1255
1. If _fields_.[[Month]] is ~unset~ and _fields_.[[MonthCode]] is ~unset~, throw a *TypeError* exception.
1. Set _timePart_ to the string concatenation of _timePart_, abs(_duration_.[[Minutes]]) formatted as a decimal number, and the code unit 0x004D (LATIN CAPITAL LETTER M).
1945
1945
1. Let _zeroMinutesAndHigher_ be *false*.
1946
-
1. If DefaultTemporalLargestUnit(_duration_) is ~second~, ~millisecond~, ~microsecond~, or ~nanosecond~, set _zeroMinutesAndHigher_ to *true*.
1946
+
1. If DefaultTemporalLargestUnit(_duration_) is one of ~second~, ~millisecond~, ~microsecond~, or ~nanosecond~, set _zeroMinutesAndHigher_ to *true*.
1947
1947
1. Let _secondsDuration_ be TimeDurationFromComponents(0, 0, _duration_.[[Seconds]], _duration_.[[Milliseconds]], _duration_.[[Microseconds]], _duration_.[[Nanoseconds]]).
1948
1948
1. If _secondsDuration_ ≠ 0, or _zeroMinutesAndHigher_ is *true*, or _precision_ is not ~auto~, then
1949
1949
1. Let _secondsPart_ be abs(truncate(_secondsDuration_ / 10<sup>9</sup>)) formatted as a decimal number.
Copy file name to clipboardExpand all lines: spec/intl.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -616,7 +616,7 @@ <h1>
616
616
1. Let _formatOptions_ be a new Record.
617
617
1. If _required_ is one of ~date~, ~year-month~, or ~any~, then
618
618
1. Set _formatOptions_.[[era]] to _options_.[[era]].
619
-
1. If _required_ is ~time~ or ~any~, then
619
+
1. If _required_ is either ~time~ or ~any~, then
620
620
1. Set _formatOptions_.[[hourCycle]] to _options_.[[hourCycle]].
621
621
1. Let _anyPresent_ be *false*.
622
622
1. For each property name _prop_ of « *"weekday"*, *"year"*, *"month"*, *"day"*, *"dayPeriod"*, *"hour"*, *"minute"*, *"second"*, *"fractionalSecondDigits"* », do
@@ -1099,7 +1099,7 @@ <h1>
1099
1099
<dlclass="header">
1100
1100
</dl>
1101
1101
<emu-alg>
1102
-
1. If _temporalDate_.[[Calendar]] is not _dateTimeFormat_.[[Calendar]] or *"iso8601"*, throw a *RangeError* exception.
1102
+
1. If _temporalDate_.[[Calendar]] is not either _dateTimeFormat_.[[Calendar]] or *"iso8601"*, throw a *RangeError* exception.
1103
1103
1. Let _isoDateTime_ be CombineISODateAndTimeRecord(_temporalDate_.[[ISODate]], NoonTimeRecord()).
1104
1104
1. Let _epochNs_ be GetUTCEpochNanoseconds(_isoDateTime_).
1105
1105
1. Let _format_ be _dateTimeFormat_.[[TemporalPlainDateFormat]].
0 commit comments