Skip to content
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

Coverage gap: Test what happens when PlainYearMonth's first day falls in ISO month -271821-03 #3082

Open
ptomato opened this issue Feb 4, 2025 · 0 comments
Labels

Comments

@ptomato
Copy link
Collaborator

ptomato commented Feb 4, 2025

Thanks to @Josh-Cena I realized there's a weird case with PlainYearMonth that we don't have coverage for in test262. According to the spec, if there's any calendar where ISO date -271821-04-20 falls in a non-ISO month that starts on -271821-03-31 or earlier, Temporal.PlainDate.from('-271821-04-20').withCalendar(...).toPlainYearMonth() will throw a RangeError.

I haven't checked if any there's any actual calendar that has this problem. If there is, we should have coverage for it in test262.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant