Skip to content

Commit 9924aa4

Browse files
sffcptomato
authored andcommitted
Normative: Re-order operations in GetDifferenceSettings
1 parent 3eaaadf commit 9924aa4

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
@@ -1837,15 +1837,15 @@ <h1>
18371837
<emu-alg>
18381838
1. NOTE: The following steps read options and perform independent validation in alphabetical order.
18391839
1. Let _largestUnit_ be ? GetTemporalUnitValuedOption(_options_, *"largestUnit"*, ~unset~).
1840+
1. Let _roundingIncrement_ be ? GetRoundingIncrementOption(_options_).
1841+
1. Let _roundingMode_ be ? GetRoundingModeOption(_options_, ~trunc~).
1842+
1. Let _smallestUnit_ be ? GetTemporalUnitValuedOption(_options_, *"smallestUnit"*, ~unset~).
18401843
1. Perform ? ValidateTemporalUnitValue(_largestUnit_, _unitGroup_, « ~auto~ »).
18411844
1. If _largestUnit_ is ~unset~, then
18421845
1. Set _largestUnit_ to ~auto~.
18431846
1. If _disallowedUnits_ contains _largestUnit_, throw a *RangeError* exception.
1844-
1. Let _roundingIncrement_ be ? GetRoundingIncrementOption(_options_).
1845-
1. Let _roundingMode_ be ? GetRoundingModeOption(_options_, ~trunc~).
18461847
1. If _operation_ is ~since~, then
18471848
1. Set _roundingMode_ to NegateRoundingMode(_roundingMode_).
1848-
1. Let _smallestUnit_ be ? GetTemporalUnitValuedOption(_options_, *"smallestUnit"*, ~unset~).
18491849
1. Perform ? ValidateTemporalUnitValue(_smallestUnit_, _unitGroup_).
18501850
1. If _smallestUnit_ is ~unset~, then
18511851
1. Set _smallestUnit_ to _fallbackSmallestUnit_.

0 commit comments

Comments
 (0)