Skip to content

Commit b911bc9

Browse files
linusgptomato
authored andcommitted
Editorial: Swap 'until' and 'since' arguments to DifferenceTemporalZonedDateTime
Temporal.ZonedDateTime.prototype.since() needs to pass 'since', and vice versa. Regression introduced in 85a9f57.
1 parent a855673 commit b911bc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/plaintime.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ <h1>Temporal.PlainTime.prototype.until ( _other_ [ , _options_ ] )</h1>
280280
<emu-alg>
281281
1. Let _temporalTime_ be the *this* value.
282282
1. Perform ? RequireInternalSlot(_temporalTime_, [[InitializedTemporalTime]]).
283-
1. Return ? DifferenceTemporalPlainTime(~since~, _temporalTime_, _other_, _options_).
283+
1. Return ? DifferenceTemporalPlainTime(~until~, _temporalTime_, _other_, _options_).
284284
</emu-alg>
285285
</emu-clause>
286286

@@ -293,7 +293,7 @@ <h1>Temporal.PlainTime.prototype.since ( _other_ [ , _options_ ] )</h1>
293293
<emu-alg>
294294
1. Let _temporalTime_ be the *this* value.
295295
1. Perform ? RequireInternalSlot(_temporalTime_, [[InitializedTemporalTime]]).
296-
1. Return ? DifferenceTemporalPlainTime(~until~, _temporalTime_, _other_, _options_).
296+
1. Return ? DifferenceTemporalPlainTime(~since~, _temporalTime_, _other_, _options_).
297297
</emu-alg>
298298
</emu-clause>
299299

0 commit comments

Comments
 (0)