Skip to content

Commit

Permalink
Last fixes, will squash
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtenny committed Jan 26, 2021
1 parent 5d4f375 commit b65f312
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
4 changes: 3 additions & 1 deletion spec/abstractops.html
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ <h1>ToPositiveIntegerOrInfinity ( _argument_ )</h1>
The abstract operation ToPositiveIntegerOrInfinity takes argument _argument_. It converts _argument_ to +∞ or an integer _i_ for which <emu-eqn>0 &lt; i</emu-eqn>. It performs the following steps:
</p>
<emu-alg>
1. Let _integer_ be ? ToInteger(_argument_).
1. Let _integer_ be ? ToIntegerOrInfinity(_argument_).
1. If _integer_ is *-∞*<sub>𝔽</sub>, then
1. Throw a *RangeError* exception.
1. If _integer_ &le; 0, then
Expand All @@ -1469,6 +1469,7 @@ <h1>PrepareTemporalFields ( _fields_, _fieldNames_, _requiredFields_ )</h1>
<p>
The abstract operation PrepareTemporalFields reads the relevant properties of an Object _fields_; ensures all the required properties are present; and creates a new Object with all the properties converted to the correct type. It performs the following steps:
</p>
<emu-note>The value of ? ToIntegerOrInfinity(*undefined*) is 0.</emu-note>
<emu-alg>
1. Assert: Type(_fields_) is Object.
1. Let _result_ be ? OrdinaryObjectCreate(%Object.prototype%).
Expand Down Expand Up @@ -1623,6 +1624,7 @@ <h1>PreparePartialTemporalFields ( _fields_, _fieldNames_ )</h1>
<p>
The abstract operation PreparePartialTemporalFields reads the relevant properties of an Object _fields_ and creates a new Object with all the properties converted to the correct type. It performs the following steps:
</p>
<emu-note>The value of ? ToIntegerOrInfinity(*undefined*) is 0.</emu-note>
<emu-alg>
1. If Type(_fields_) is not Object, then
1. Throw a *TypeError* exception.
Expand Down
1 change: 0 additions & 1 deletion spec/plaindatetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,6 @@ <h1>CreateTemporalDateTimeFromStatic ( _constructor_, _year_, _month_, _day_, _h

<emu-clause id="sec-temporal-totemporaldatetimefields" aoid="ToTemporalDateTimeFields">
<h1>ToTemporalDateTimeFields ( _temporalDateTimeLike_, _fieldNames_ )</h1>
<emu-note>The value of ? ToIntegerOrInfinity(*undefined*) is 0.</emu-note>
<emu-alg>
1. Return ? PrepareTemporalFields(_temporalDateTimeLike_, _fieldNames_, «»).
</emu-alg>
Expand Down
7 changes: 2 additions & 5 deletions spec/plainmonthday.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,8 @@ <h1>Temporal.PlainMonthDay.prototype.toPlainDate ( _item_ )</h1>
1. Throw a *TypeError* exception.
1. Let _inputFieldNames_ be ? CalendarFields(_calendar_, « *"year"* »).
1. Let _inputFields_ be ? PrepareTemporalFields(_item_, _inputFieldNames_, «»).
1. For each value _property_ of _inputFieldNames_, do
1. Let _value_ be ? Get(_item_, _property_).
1. If _value_ is not *undefined*, then
1. Perform ! CreateDataPropertyOrThrow(_fields_, _property_, _value_).
1. Return ? DateFromFields(_calendar_, _fields_, %Temporal.PlainDate%, *"reject"*).
1. Let _mergedFields_ be ? CalendarMergeFields(_calendar_, _fields_, _inputFields_).
1. Return ? DateFromFields(_calendar_, _mergedFields_, %Temporal.PlainDate%, *"reject"*).
</emu-alg>
</emu-clause>

Expand Down
7 changes: 2 additions & 5 deletions spec/plainyearmonth.html
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,8 @@ <h1>Temporal.PlainYearMonth.prototype.toPlainDate ( _item_ )</h1>
1. Let _fields_ be ? ToTemporalYearMonthFields(_yearMonth_, _receiverFieldNames_).
1. Let _inputFieldNames_ be ? CalendarFields(_calendar_, « *"day"* »).
1. Let _inputFields_ be ? PrepareTemporalFields(_item_, _inputFieldNames_, «»).
1. For each value _property_ of _inputFieldNames_, do
1. Let _value_ be ? Get(_item_, _property_).
1. If _value_ is not *undefined*, then
1. Perform ! CreateDataPropertyOrThrow(_fields_, _property_, _value_).
1. Return ? DateFromFields(_calendar_, _fields_, %Temporal.PlainDate%, *"reject"*).
1. Let _mergedFields_ be ? CalendarMergeFields(_calendar_, _fields_, _inputFields_).
1. Return ? DateFromFields(_calendar_, _mergedFields_, %Temporal.PlainDate%, *"reject"*).
</emu-alg>
</emu-clause>

Expand Down
1 change: 0 additions & 1 deletion spec/zoneddatetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,6 @@ <h1>ToTemporalZonedDateTimeFields ( _temporalZonedDateTimeLike_, _fieldNames_ )<
<p>
The abstract operation ToTemporalZonedDateTimeFields reads the relevant properties of an Object _temporalZonedDateTimeLike_, including the calendar-specific ones; ensures all the required properties are present; and creates a new Object with all the properties converted to the correct type, missing ones filled in with their default values.
</p>
<emu-note>The value of ? ToIntegerOrInfinity(*undefined*) is 0.</emu-note>
<emu-alg>
1. Assert: Type(_temporalZonedDateTimeLike_) is Object.
1. Let _fieldNamesList_ be ? CreateListFromArrayLike(_fieldNames_).
Expand Down

0 comments on commit b65f312

Please sign in to comment.