|
920 | 920 | 1. Else,
|
921 | 921 | 1. Let _string_ be ? ToString(_item_).
|
922 | 922 | 1. Let _result_ be ? ParseTemporalDurationString(_string_).
|
923 |
| - 1. Return ? CreateTemporalDuration(_result_.[[Years]], _result_.[[Months]], _result_.[[Weeks]], _result_.[[Days]], _result_.[[Hours]], _result_.[[Minutes]], _result_.[[Seconds]], _result_.[[Milliseconds]], _result_.[[Microseconds]], _result_.[[Nanoseconds]]). |
| 923 | + 1. Return ! CreateTemporalDuration(_result_.[[Years]], _result_.[[Months]], _result_.[[Weeks]], _result_.[[Days]], _result_.[[Hours]], _result_.[[Minutes]], _result_.[[Seconds]], _result_.[[Milliseconds]], _result_.[[Microseconds]], _result_.[[Nanoseconds]]). |
924 | 924 | </emu-alg>
|
925 | 925 | </emu-clause>
|
926 | 926 |
|
|
950 | 950 | 1. Set _result_'s field whose name is the Field Name value of the current row to _val_.
|
951 | 951 | 1. If _any_ is *false*, then
|
952 | 952 | 1. Throw a *TypeError* exception.
|
| 953 | + 1. If ! IsValidDuration(_result_.[[Years]], _result_.[[Months]], _result_.[[Weeks]] _result_.[[Days]], _result_.[[Hours]], _result_.[[Minutes]], _result_.[[Seconds]], _result_.[[Milliseconds]], _result_.[[Microseconds]], _result_.[[Nanoseconds]]) is *false*, then |
| 954 | + 1. Throw a *RangeError* exception. |
953 | 955 | 1. Return _result_.
|
954 | 956 | </emu-alg>
|
955 | 957 | </emu-clause>
|
@@ -1787,7 +1789,6 @@ <h1>
|
1787 | 1789 | 1. Let _duration_ be ? ParseTemporalDurationString(_str_).
|
1788 | 1790 | 1. Else,
|
1789 | 1791 | 1. Let _duration_ be ? ToTemporalDurationRecord(_temporalDurationLike_).
|
1790 |
| - 1. If ! IsValidDuration(_duration_.[[Years]], _duration_.[[Months]], _duration_.[[Weeks]], _duration_.[[Days]], _duration_.[[Hours]], _duration_.[[Minutes]], _duration_.[[Seconds]], _duration_.[[Milliseconds]], _duration_.[[Microseconds]], _duration_.[[Nanoseconds]]) is *false*, throw a *RangeError* exception. |
1791 | 1792 | 1. For each row of <emu-xref href="#table-temporal-duration-record-fields"></emu-xref>, except the header row, in table order, do
|
1792 | 1793 | 1. Let _prop_ be the Property Name value of the current row.
|
1793 | 1794 | 1. Let _value_ be _duration_'s field whose name is the Field Name value of the current row.
|
|
0 commit comments