mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 22:15:24 +02:00
Temporal: Don't convert relativeTo to PlainDate twice in Duration.compare
This commit is contained in:
parent
0a6341de65
commit
008b97932b
@ -353,16 +353,15 @@ actual.splice(0); // clear
|
|||||||
const expectedOpsForDayBalancing = expectedOpsForZonedRelativeTo.concat(
|
const expectedOpsForDayBalancing = expectedOpsForZonedRelativeTo.concat(
|
||||||
expectedOpsForCalculateOffsetShift,
|
expectedOpsForCalculateOffsetShift,
|
||||||
[
|
[
|
||||||
// UnbalanceDurationRelative
|
// ToTemporalDate
|
||||||
"get options.relativeTo.timeZone.getOffsetNanosecondsFor", // 7.a ToTemporalDate
|
"get options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
||||||
"call options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
"call options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
||||||
|
// UnbalanceDurationRelative
|
||||||
"get options.relativeTo.calendar.dateAdd", // 11.a.ii
|
"get options.relativeTo.calendar.dateAdd", // 11.a.ii
|
||||||
"call options.relativeTo.calendar.dateAdd", // 11.a.iii.1 MoveRelativeDate
|
"call options.relativeTo.calendar.dateAdd", // 11.a.iii.1 MoveRelativeDate
|
||||||
"call options.relativeTo.calendar.dateAdd", // 11.a.iv.1 MoveRelativeDate
|
"call options.relativeTo.calendar.dateAdd", // 11.a.iv.1 MoveRelativeDate
|
||||||
"call options.relativeTo.calendar.dateAdd", // 11.a.v.1 MoveRelativeDate
|
"call options.relativeTo.calendar.dateAdd", // 11.a.v.1 MoveRelativeDate
|
||||||
// UnbalanceDurationRelative again for the second argument:
|
// UnbalanceDurationRelative again for the second argument:
|
||||||
"get options.relativeTo.timeZone.getOffsetNanosecondsFor", // 7.a ToTemporalDate
|
|
||||||
"call options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get options.relativeTo.calendar.dateAdd", // 11.a.ii
|
"get options.relativeTo.calendar.dateAdd", // 11.a.ii
|
||||||
"call options.relativeTo.calendar.dateAdd", // 11.a.iii.1 MoveRelativeDate
|
"call options.relativeTo.calendar.dateAdd", // 11.a.iii.1 MoveRelativeDate
|
||||||
"call options.relativeTo.calendar.dateAdd", // 11.a.iv.1 MoveRelativeDate
|
"call options.relativeTo.calendar.dateAdd", // 11.a.iv.1 MoveRelativeDate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user