File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1872,13 +1872,13 @@ <h1>
1872
1872
<emu-alg >
1873
1873
1. NOTE: The following steps read options and perform independent validation in alphabetical order.
1874
1874
1. Let _largestUnit_ be ? GetTemporalUnitValuedOption(_options_ , *"largestUnit"* , ~auto~ ).
1875
- 1. Perform ? ValidateTemporalUnitValue(_largestUnit_ , _unitGroup_ ).
1876
- 1. If _disallowedUnits_ contains _largestUnit_ , throw a *RangeError* exception.
1877
1875
1. Let _roundingIncrement_ be ? GetRoundingIncrementOption(_options_ ).
1878
1876
1. Let _roundingMode_ be ? GetRoundingModeOption(_options_ , ~trunc~ ).
1877
+ 1. Let _smallestUnitOrUnset_ be ? GetTemporalUnitValuedOption(_options_ , *"smallestUnit"* , ~unset~ ).
1878
+ 1. Perform ? ValidateTemporalUnitValue(_largestUnit_ , _unitGroup_ ).
1879
+ 1. If _disallowedUnits_ contains _largestUnit_ , throw a *RangeError* exception.
1879
1880
1. If _operation_ is ~since~ , then
1880
1881
1. Set _roundingMode_ to NegateRoundingMode(_roundingMode_ ).
1881
- 1. Let _smallestUnitOrUnset_ be ? GetTemporalUnitValuedOption(_options_ , *"smallestUnit"* , ~unset~ ).
1882
1882
1. Perform ? ValidateTemporalUnitValue(_smallestUnitOrUnset_ , _unitGroup_ ).
1883
1883
1. If _smallestUnitOrUnset_ is ~unset~ , then
1884
1884
1. Set _smallestUnit_ to _fallbackSmallestUnit_ .
You can’t perform that action at this time.
0 commit comments