Skip to content

Commit 38233ae

Browse files
ptomatoMs2ger
authored andcommitted
Editorial: Avoid negated test
h/t Anba Closes: #3024
1 parent 4a8cdb5 commit 38233ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/zoneddatetime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ <h1>
12131213
1. Throw a *RangeError* exception.
12141214
1. Let _resolvedOptions_ be ? GetOptionsObject(_options_).
12151215
1. Let _settings_ be ? GetDifferenceSettings(_operation_, _resolvedOptions_, ~datetime~, « », ~nanosecond~, ~hour~).
1216-
1. If TemporalUnitCategory(_settings_.[[LargestUnit]]) is not ~date~, then
1216+
1. If TemporalUnitCategory(_settings_.[[LargestUnit]]) is ~time~, then
12171217
1. Let _internalDuration_ be DifferenceInstant(_zonedDateTime_.[[EpochNanoseconds]], _other_.[[EpochNanoseconds]], _settings_.[[RoundingIncrement]], _settings_.[[SmallestUnit]], _settings_.[[RoundingMode]]).
12181218
1. Let _result_ be ! TemporalDurationFromInternal(_internalDuration_, _settings_.[[LargestUnit]]).
12191219
1. If _operation_ is ~since~, set _result_ to CreateNegatedTemporalDuration(_result_).

0 commit comments

Comments
 (0)