mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 21:45:04 +02:00
Temporal: Avoid reconverting Zoned- to PlainDateTime in AddZonedDateTime
This commit is contained in:
parent
a74fbada42
commit
80958c3267
@ -249,8 +249,6 @@ const expectedOpsForZonedRelativeTo = expected.concat([
|
|||||||
"get options.relativeTo.calendar.dateUntil",
|
"get options.relativeTo.calendar.dateUntil",
|
||||||
"call options.relativeTo.calendar.dateUntil",
|
"call options.relativeTo.calendar.dateUntil",
|
||||||
// AddDuration → DifferenceZonedDateTime → AddZonedDateTime
|
// AddDuration → DifferenceZonedDateTime → AddZonedDateTime
|
||||||
"get options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"call options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get options.relativeTo.calendar.dateAdd",
|
"get options.relativeTo.calendar.dateAdd",
|
||||||
"call options.relativeTo.calendar.dateAdd",
|
"call options.relativeTo.calendar.dateAdd",
|
||||||
"get options.relativeTo.timeZone.getPossibleInstantsFor",
|
"get options.relativeTo.timeZone.getPossibleInstantsFor",
|
||||||
@ -264,8 +262,6 @@ const expectedOpsForZonedRelativeTo = expected.concat([
|
|||||||
"get options.relativeTo.calendar.dateUntil",
|
"get options.relativeTo.calendar.dateUntil",
|
||||||
"call options.relativeTo.calendar.dateUntil",
|
"call options.relativeTo.calendar.dateUntil",
|
||||||
// AddDuration → DifferenceZonedDateTime → NanosecondsToDays → AddZonedDateTime 1
|
// AddDuration → DifferenceZonedDateTime → NanosecondsToDays → AddZonedDateTime 1
|
||||||
"get options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"call options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get options.relativeTo.calendar.dateAdd",
|
"get options.relativeTo.calendar.dateAdd",
|
||||||
"call options.relativeTo.calendar.dateAdd",
|
"call options.relativeTo.calendar.dateAdd",
|
||||||
"get options.relativeTo.timeZone.getPossibleInstantsFor",
|
"get options.relativeTo.timeZone.getPossibleInstantsFor",
|
||||||
|
@ -363,8 +363,6 @@ const expectedOpsForYearRoundingZoned = expectedOpsForZonedRelativeTo.concat([
|
|||||||
"get options.relativeTo.calendar.dateUntil", // 12. DifferenceISODateTime
|
"get options.relativeTo.calendar.dateUntil", // 12. DifferenceISODateTime
|
||||||
"call options.relativeTo.calendar.dateUntil",
|
"call options.relativeTo.calendar.dateUntil",
|
||||||
// NanosecondsToDays → AddZonedDateTime
|
// NanosecondsToDays → AddZonedDateTime
|
||||||
"get options.relativeTo.timeZone.getOffsetNanosecondsFor", // 5. GetPlainDateTimeFor
|
|
||||||
"call options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get options.relativeTo.calendar.dateAdd", // 8.
|
"get options.relativeTo.calendar.dateAdd", // 8.
|
||||||
"call options.relativeTo.calendar.dateAdd",
|
"call options.relativeTo.calendar.dateAdd",
|
||||||
"get options.relativeTo.timeZone.getPossibleInstantsFor", // 10. GetInstantFor
|
"get options.relativeTo.timeZone.getPossibleInstantsFor", // 10. GetInstantFor
|
||||||
|
@ -249,8 +249,6 @@ const expectedOpsForZonedRelativeTo = expected.concat([
|
|||||||
"get options.relativeTo.calendar.dateUntil",
|
"get options.relativeTo.calendar.dateUntil",
|
||||||
"call options.relativeTo.calendar.dateUntil",
|
"call options.relativeTo.calendar.dateUntil",
|
||||||
// AddDuration → DifferenceZonedDateTime → AddZonedDateTime
|
// AddDuration → DifferenceZonedDateTime → AddZonedDateTime
|
||||||
"get options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"call options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get options.relativeTo.calendar.dateAdd",
|
"get options.relativeTo.calendar.dateAdd",
|
||||||
"call options.relativeTo.calendar.dateAdd",
|
"call options.relativeTo.calendar.dateAdd",
|
||||||
"get options.relativeTo.timeZone.getPossibleInstantsFor",
|
"get options.relativeTo.timeZone.getPossibleInstantsFor",
|
||||||
@ -264,8 +262,6 @@ const expectedOpsForZonedRelativeTo = expected.concat([
|
|||||||
"get options.relativeTo.calendar.dateUntil",
|
"get options.relativeTo.calendar.dateUntil",
|
||||||
"call options.relativeTo.calendar.dateUntil",
|
"call options.relativeTo.calendar.dateUntil",
|
||||||
// AddDuration → DifferenceZonedDateTime → NanosecondsToDays → AddZonedDateTime 1
|
// AddDuration → DifferenceZonedDateTime → NanosecondsToDays → AddZonedDateTime 1
|
||||||
"get options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"call options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get options.relativeTo.calendar.dateAdd",
|
"get options.relativeTo.calendar.dateAdd",
|
||||||
"call options.relativeTo.calendar.dateAdd",
|
"call options.relativeTo.calendar.dateAdd",
|
||||||
"get options.relativeTo.timeZone.getPossibleInstantsFor",
|
"get options.relativeTo.timeZone.getPossibleInstantsFor",
|
||||||
|
@ -270,8 +270,6 @@ const expectedOpsForYearRoundingZoned = expectedOpsForZonedRelativeTo.concat([
|
|||||||
"get options.relativeTo.calendar.dateUntil", // 12. DifferenceISODateTime
|
"get options.relativeTo.calendar.dateUntil", // 12. DifferenceISODateTime
|
||||||
"call options.relativeTo.calendar.dateUntil",
|
"call options.relativeTo.calendar.dateUntil",
|
||||||
// BalancePossiblyInfiniteDuration → NanosecondsToDays → AddZonedDateTime
|
// BalancePossiblyInfiniteDuration → NanosecondsToDays → AddZonedDateTime
|
||||||
"get options.relativeTo.timeZone.getOffsetNanosecondsFor", // 5. GetPlainDateTimeFor
|
|
||||||
"call options.relativeTo.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get options.relativeTo.calendar.dateAdd", // 8.
|
"get options.relativeTo.calendar.dateAdd", // 8.
|
||||||
"call options.relativeTo.calendar.dateAdd",
|
"call options.relativeTo.calendar.dateAdd",
|
||||||
"get options.relativeTo.timeZone.getPossibleInstantsFor", // 10. GetInstantFor
|
"get options.relativeTo.timeZone.getPossibleInstantsFor", // 10. GetInstantFor
|
||||||
|
@ -25,8 +25,6 @@ const expected = [
|
|||||||
"get this.timeZone.getPossibleInstantsFor",
|
"get this.timeZone.getPossibleInstantsFor",
|
||||||
"call this.timeZone.getPossibleInstantsFor",
|
"call this.timeZone.getPossibleInstantsFor",
|
||||||
// AddZonedDateTime
|
// AddZonedDateTime
|
||||||
"get this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"call this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get this.calendar.dateAdd",
|
"get this.calendar.dateAdd",
|
||||||
"call this.calendar.dateAdd",
|
"call this.calendar.dateAdd",
|
||||||
"get this.timeZone.getPossibleInstantsFor",
|
"get this.timeZone.getPossibleInstantsFor",
|
||||||
|
@ -158,8 +158,6 @@ const expectedOpsForCalendarDifference = [
|
|||||||
"get this.calendar.dateUntil",
|
"get this.calendar.dateUntil",
|
||||||
"call this.calendar.dateUntil",
|
"call this.calendar.dateUntil",
|
||||||
// AddZonedDateTime
|
// AddZonedDateTime
|
||||||
"get this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"call this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get this.calendar.dateAdd",
|
"get this.calendar.dateAdd",
|
||||||
"call this.calendar.dateAdd",
|
"call this.calendar.dateAdd",
|
||||||
"get this.timeZone.getPossibleInstantsFor",
|
"get this.timeZone.getPossibleInstantsFor",
|
||||||
@ -173,8 +171,6 @@ const expectedOpsForCalendarDifference = [
|
|||||||
"get this.calendar.dateUntil",
|
"get this.calendar.dateUntil",
|
||||||
"call this.calendar.dateUntil",
|
"call this.calendar.dateUntil",
|
||||||
// NanosecondsToDays → AddZonedDateTime
|
// NanosecondsToDays → AddZonedDateTime
|
||||||
"get this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"call this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get this.calendar.dateAdd",
|
"get this.calendar.dateAdd",
|
||||||
"call this.calendar.dateAdd",
|
"call this.calendar.dateAdd",
|
||||||
"get this.timeZone.getPossibleInstantsFor",
|
"get this.timeZone.getPossibleInstantsFor",
|
||||||
|
@ -158,8 +158,6 @@ const expectedOpsForCalendarDifference = [
|
|||||||
"get this.calendar.dateUntil",
|
"get this.calendar.dateUntil",
|
||||||
"call this.calendar.dateUntil",
|
"call this.calendar.dateUntil",
|
||||||
// AddZonedDateTime
|
// AddZonedDateTime
|
||||||
"get this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"call this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get this.calendar.dateAdd",
|
"get this.calendar.dateAdd",
|
||||||
"call this.calendar.dateAdd",
|
"call this.calendar.dateAdd",
|
||||||
"get this.timeZone.getPossibleInstantsFor",
|
"get this.timeZone.getPossibleInstantsFor",
|
||||||
@ -173,8 +171,6 @@ const expectedOpsForCalendarDifference = [
|
|||||||
"get this.calendar.dateUntil",
|
"get this.calendar.dateUntil",
|
||||||
"call this.calendar.dateUntil",
|
"call this.calendar.dateUntil",
|
||||||
// NanosecondsToDays → AddZonedDateTime
|
// NanosecondsToDays → AddZonedDateTime
|
||||||
"get this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"call this.timeZone.getOffsetNanosecondsFor",
|
|
||||||
"get this.calendar.dateAdd",
|
"get this.calendar.dateAdd",
|
||||||
"call this.calendar.dateAdd",
|
"call this.calendar.dateAdd",
|
||||||
"get this.timeZone.getPossibleInstantsFor",
|
"get this.timeZone.getPossibleInstantsFor",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user