You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f. Let isoDateTime be CombineISODateAndTimeRecord(plainRelativeTo.[[ISODate]], MidnightTimeRecord()).
g. Let targetDateTime be CombineISODateAndTimeRecord(targetDate, targetTime).
h. Set internalDuration to ? DifferencePlainDateTimeWithRounding(isoDateTime, targetDateTime, calendar, largestUnit, roundingIncrement, smallestUnit, roundingMode).
Temporal.Duration.prototype.total, steps 12.f-h:
f. Let isoDateTime be CombineISODateAndTimeRecord(plainRelativeTo.[[ISODate]], MidnightTimeRecord()).
g. Let targetDateTime be CombineISODateAndTimeRecord(targetDate, targetTime).
h. Let total be ? DifferencePlainDateTimeWithTotal(isoDateTime, targetDateTime, calendar, unit).
isoDateTime and targetDateTime can be be outside the valid date-time limits, which breaks assertions in DifferencePlainDateTimeWithRounding and DifferencePlainDateTimeWithTotal when calling DifferenceISODateTime.
(This is already covered by test262 tests, but probably didn't get noticed because the polyfill doesn't implement the assertion steps.)
The text was updated successfully, but these errors were encountered:
@anba Are you sure it already has test coverage? I tried adding the assertion steps to the polyfill, and got no new test failures. Which ones fail on your end?
Temporal.Duration.prototype.round, steps 27.f-h:
Temporal.Duration.prototype.total, steps 12.f-h:
isoDateTime
andtargetDateTime
can be be outside the valid date-time limits, which breaks assertions inDifferencePlainDateTimeWithRounding
andDifferencePlainDateTimeWithTotal
when callingDifferenceISODateTime
.(This is already covered by test262 tests, but probably didn't get noticed because the polyfill doesn't implement the assertion steps.)
The text was updated successfully, but these errors were encountered: