Skip to content

Commit c11021a

Browse files
catamorphismptomato
authored andcommitted
Editorial: In GetDifferenceSettings, move NegateRoundingMode call
Move this step to immediately precede the return. This is unobservable since nothing relies on _roundingMode_ before the return.
1 parent 8a51e7e commit c11021a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/abstractops.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,8 +1874,6 @@ <h1>
18741874
1. If _largestUnit_ is ~unset~, then
18751875
1. Set _largestUnit_ to ~auto~.
18761876
1. If _disallowedUnits_ contains _largestUnit_, throw a *RangeError* exception.
1877-
1. If _operation_ is ~since~, then
1878-
1. Set _roundingMode_ to NegateRoundingMode(_roundingMode_).
18791877
1. Perform ? ValidateTemporalUnitValue(_smallestUnit_, _unitGroup_).
18801878
1. If _smallestUnit_ is ~unset~, then
18811879
1. Set _smallestUnit_ to _fallbackSmallestUnit_.
@@ -1885,6 +1883,8 @@ <h1>
18851883
1. If LargerOfTwoTemporalUnits(_largestUnit_, _smallestUnit_) is not _largestUnit_, throw a *RangeError* exception.
18861884
1. Let _maximum_ be MaximumTemporalDurationRoundingIncrement(_smallestUnit_).
18871885
1. If _maximum_ is not ~unset~, perform ? ValidateTemporalRoundingIncrement(_roundingIncrement_, _maximum_, *false*).
1886+
1. If _operation_ is ~since~, then
1887+
1. Set _roundingMode_ to NegateRoundingMode(_roundingMode_).
18881888
1. Return the Record {
18891889
[[SmallestUnit]]: _smallestUnit_,
18901890
[[LargestUnit]]: _largestUnit_,

0 commit comments

Comments
 (0)