-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CalendarMonthDayToISOReferenceDate: Require "eraYear + year" and "month + monthCode" to be consistent? #2864
Comments
Meeting 2024-05-30: @gibson042 will PR a change to align behavior of non-ISO calendars to match behavior of ISO calendar, which would throw if month/monthCode or year/era/eraYear are present but inconsistent. |
@gibson042 Will you have time to pick this up in the near future or should I pick it up? |
…levant) monthCode vs. month in non-ISO calendars Fixes tc39#2864
I think this is already covered in the spec: CalendarResolveFields (emphasis mine)
But I've updated the polyfill accordingly in #2940. It's code that I haven't touched before, so I'd appreciate a thorough review for correctness and coverage. |
This part:
doesn't apply to the example, because |
Updated #2940 to correct that. |
…levant) monthCode vs. month in non-ISO calendars Fixes tc39#2864
It'd be good to have more detailed information when built-in calendars need to check for consistent inputs:
The text was updated successfully, but these errors were encountered: