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

Temporal: Add Temporal era/eraYear tests #3792

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

Aditi-1400
Copy link
Contributor

@Aditi-1400 Aditi-1400 commented Mar 7, 2023

Adds tests for Temporal PR: tc39/proposal-temporal#2472

The above PR makes PrepareTemporalFields not validate that either both or none of era/eraYear are present. In all cases (except when fields is to be converted to a PlainTime, in which case it doesn't matter), that is already done immediately afterwards anyway by one of the dateFromFields/yearMonthFromFields/monthDayFromFields Calendar methods, which is where we think this validation belongs.

See issue: tc39/proposal-temporal#2465

Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ptomato ptomato merged commit 53e5ef8 into tc39:main Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants