Skip to content

Commit 7c19fec

Browse files
sffcptomato
authored andcommitted
Normative: Re-order operations in GetDifferenceSettings
1 parent ebd83a4 commit 7c19fec

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
@@ -1866,15 +1866,15 @@ <h1>
18661866
<emu-alg>
18671867
1. NOTE: The following steps read options and perform independent validation in alphabetical order.
18681868
1. Let _largestUnit_ be ? GetTemporalUnitValuedOption(_options_, *"largestUnit"*, ~unset~).
1869+
1. Let _roundingIncrement_ be ? GetRoundingIncrementOption(_options_).
1870+
1. Let _roundingMode_ be ? GetRoundingModeOption(_options_, ~trunc~).
1871+
1. Let _smallestUnit_ be ? GetTemporalUnitValuedOption(_options_, *"smallestUnit"*, ~unset~).
18691872
1. Perform ? ValidateTemporalUnitValue(_largestUnit_, _unitGroup_, « ~auto~ »).
18701873
1. If _largestUnit_ is ~unset~, then
18711874
1. Set _largestUnit_ to ~auto~.
18721875
1. If _disallowedUnits_ contains _largestUnit_, throw a *RangeError* exception.
1873-
1. Let _roundingIncrement_ be ? GetRoundingIncrementOption(_options_).
1874-
1. Let _roundingMode_ be ? GetRoundingModeOption(_options_, ~trunc~).
18751876
1. If _operation_ is ~since~, then
18761877
1. Set _roundingMode_ to NegateRoundingMode(_roundingMode_).
1877-
1. Let _smallestUnit_ be ? GetTemporalUnitValuedOption(_options_, *"smallestUnit"*, ~unset~).
18781878
1. Perform ? ValidateTemporalUnitValue(_smallestUnit_, _unitGroup_).
18791879
1. If _smallestUnit_ is ~unset~, then
18801880
1. Set _smallestUnit_ to _fallbackSmallestUnit_.

0 commit comments

Comments
 (0)