Skip to content

Commit

Permalink
Normative: Pass correct values to AddDurationToOrSubtractDurationFrom…
Browse files Browse the repository at this point in the history
…PlainTime

This fixes a 'normative typo' introduced in tc39#2166.
Instead of passing temporalTime twice, we need to also pass
temporalDurationLike.
  • Loading branch information
linusg committed May 6, 2022
1 parent 9c99bf8 commit 599c864
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/plaintime.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ <h1>Temporal.PlainTime.prototype.add ( _temporalDurationLike_ )</h1>
<emu-alg>
1. Let _temporalTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_temporalTime_, [[InitializedTemporalTime]]).
1. Return ? AddDurationToOrSubtractDurationFromPlainTime(~add~, _temporalTime_, _temporalTime_).
1. Return ? AddDurationToOrSubtractDurationFromPlainTime(~add~, _temporalTime_, _temporalDurationLike_).
</emu-alg>
</emu-clause>

Expand All @@ -223,7 +223,7 @@ <h1>Temporal.PlainTime.prototype.subtract ( _temporalDurationLike_ )</h1>
<emu-alg>
1. Let _temporalTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_temporalTime_, [[InitializedTemporalTime]]).
1. Return ? AddDurationToOrSubtractDurationFromPlainTime(~subtract~, _temporalTime_, _temporalTime_).
1. Return ? AddDurationToOrSubtractDurationFromPlainTime(~subtract~, _temporalTime_, _temporalDurationLike_).
</emu-alg>
</emu-clause>

Expand Down

0 comments on commit 599c864

Please sign in to comment.