Skip to content

Commit

Permalink
Editorial: Remove errant [[Duration]] reference from RoundRelativeDur…
Browse files Browse the repository at this point in the history
…ation

The `duration` value is already an Internal Duration Record, which is the
type returned by RoundRelativeDuration (which does not have an internal
slot of [[Duration]] anyhow).
  • Loading branch information
trflynn89 committed Nov 21, 2024
1 parent 66d2cc7 commit 22af2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/plainyearmonth.html
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ <h1>
1. Let _isoDateTime_ be CombineISODateAndTimeRecord(_thisDate_, MidnightTimeRecord()).
1. Let _isoDateTimeOther_ be CombineISODateAndTimeRecord(_otherDate_, MidnightTimeRecord()).
1. Let _destEpochNs_ be GetUTCEpochNanoseconds(_isoDateTimeOther_).
1. Set _duration_ to ? RoundRelativeDuration(_duration_, _destEpochNs_, _isoDateTime_, ~unset~, _calendar_, _settings_.[[LargestUnit]], _settings_.[[RoundingIncrement]], _settings_.[[SmallestUnit]], _settings_.[[RoundingMode]]).[[Duration]].
1. Set _duration_ to ? RoundRelativeDuration(_duration_, _destEpochNs_, _isoDateTime_, ~unset~, _calendar_, _settings_.[[LargestUnit]], _settings_.[[RoundingIncrement]], _settings_.[[SmallestUnit]], _settings_.[[RoundingMode]]).
1. Let _result_ be ? TemporalDurationFromInternal(_duration_, ~day~).
1. If _operation_ is ~since~, set _result_ to CreateNegatedTemporalDuration(_result_).
1. Return _result_.
Expand Down

0 comments on commit 22af2b8

Please sign in to comment.