Skip to content

Commit 70fa5fa

Browse files
committed
Normative: Re-order operations in GetDifferenceSettings
1 parent 6e46d15 commit 70fa5fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/abstractops.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,13 +1872,13 @@ <h1>
18721872
<emu-alg>
18731873
1. NOTE: The following steps read options and perform independent validation in alphabetical order.
18741874
1. Let _largestUnit_ be ? GetTemporalUnitValuedOption(_options_, *"largestUnit"*, ~auto~).
1875-
1. Perform ? ValidateTemporalUnitValue(_largestUnit_, _unitGroup_).
1876-
1. If _disallowedUnits_ contains _largestUnit_, throw a *RangeError* exception.
18771875
1. Let _roundingIncrement_ be ? GetRoundingIncrementOption(_options_).
18781876
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.
18791880
1. If _operation_ is ~since~, then
18801881
1. Set _roundingMode_ to NegateRoundingMode(_roundingMode_).
1881-
1. Let _smallestUnitOrUnset_ be ? GetTemporalUnitValuedOption(_options_, *"smallestUnit"*, ~unset~).
18821882
1. Perform ? ValidateTemporalUnitValue(_smallestUnitOrUnset_, _unitGroup_).
18831883
1. If _smallestUnitOrUnset_ is ~unset~, then
18841884
1. Set _smallestUnit_ to _fallbackSmallestUnit_.

0 commit comments

Comments
 (0)