Skip to content

.with() should handle mutually exclusive fields (CalendarFieldKeysToIgnore) #449

@Manishearth

Description

@Manishearth

https://tc39.es/proposal-temporal/#sec-temporal-calendarfieldkeystoignore

.with() when given a year should ignore era/eraYear and vice versa. Same for month/monthCode

test262 failures:

  'intl402/Temporal/PlainDate/prototype/with/gregorian-mutually-exclusive-fields': [FAIL],
  'intl402/Temporal/PlainDate/prototype/with/japanese-mutually-exclusive-fields': [FAIL],
  'intl402/Temporal/PlainDate/prototype/with/non-iso-calendar-fields': [FAIL],
  'intl402/Temporal/PlainDateTime/prototype/with/non-iso-calendar-fields': [FAIL],
  'intl402/Temporal/PlainMonthDay/prototype/with/non-iso-calendar-fields': [FAIL],
  'intl402/Temporal/PlainYearMonth/prototype/with/non-iso-calendar-fields': [FAIL],
  'staging/Intl402/Temporal/old/non-iso-calendars-japanese': [FAIL],
  'staging/Intl402/Temporal/old/persian-calendar': [FAIL],

Metadata

Metadata

Assignees

No one assigned

    Labels

    test262Issue related to test262 conformance

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions