Temporal: Get receiver fields from a PlainDateTime in ZonedDateTime.with()

This commit is contained in:
Philip Chimento 2023-03-02 15:22:42 -08:00 committed by Philip Chimento
parent 4155594804
commit 01a49502f6

View File

@ -12,29 +12,21 @@ const expected = [
// RejectObjectWithCalendarOrTimeZone // RejectObjectWithCalendarOrTimeZone
"get fields.calendar", "get fields.calendar",
"get fields.timeZone", "get fields.timeZone",
// GetOffsetNanosecondsFor on receiver
"get this.timeZone.getOffsetNanosecondsFor",
"call this.timeZone.getOffsetNanosecondsFor",
// CalendarFields // CalendarFields
"get this.calendar.fields", "get this.calendar.fields",
"call this.calendar.fields", "call this.calendar.fields",
// PrepareTemporalFields on receiver // PrepareTemporalFields on receiver
"get this.timeZone.getOffsetNanosecondsFor",
"call this.timeZone.getOffsetNanosecondsFor",
"get this.calendar.day", "get this.calendar.day",
"call this.calendar.day", "call this.calendar.day",
"get this.timeZone.getOffsetNanosecondsFor",
"call this.timeZone.getOffsetNanosecondsFor",
"get this.calendar.month", "get this.calendar.month",
"call this.calendar.month", "call this.calendar.month",
"get this.timeZone.getOffsetNanosecondsFor",
"call this.timeZone.getOffsetNanosecondsFor",
"get this.calendar.monthCode", "get this.calendar.monthCode",
"call this.calendar.monthCode", "call this.calendar.monthCode",
"get this.timeZone.getOffsetNanosecondsFor",
"call this.timeZone.getOffsetNanosecondsFor",
"get this.calendar.year", "get this.calendar.year",
"call this.calendar.year", "call this.calendar.year",
// GetOffsetNanosecondsFor on receiver
"get this.timeZone.getOffsetNanosecondsFor",
"call this.timeZone.getOffsetNanosecondsFor",
// PrepareTemporalFields on argument // PrepareTemporalFields on argument
"get fields.day", "get fields.day",
"get fields.day.valueOf", "get fields.day.valueOf",