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

Allow alternative era names #4098

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Allow alternative era names #4098

merged 1 commit into from
Jul 10, 2024

Conversation

anba
Copy link
Contributor

@anba anba commented May 29, 2024

Temporal doesn't specify concrete era names, so tests shouldn't assert for example that the era code of the current Gregorian era is "ce". We still want to validate the era names somehow however, so allow alternative era names using the era codes from the "Intl era and monthCode" proposal.

@anba anba requested a review from a team as a code owner May 29, 2024 10:17
harness/temporalHelpers.js Outdated Show resolved Hide resolved
harness/temporalHelpers.js Outdated Show resolved Hide resolved
@anba anba force-pushed the temporal-era-code branch 2 times, most recently from e4899d2 to 9890d54 Compare July 10, 2024 11:49
@anba
Copy link
Contributor Author

anba commented Jul 10, 2024

Updated the helper function to work with string-only calendar identifiers and also updated the new test "intl402/Temporal/ZonedDateTime/construct-non-utc-non-iso.js" to call the helper function.

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!

Temporal doesn't specify concrete era names, so tests shouldn't assert
for example that the era code of the current Gregorian era is `"ce"`. We
still want to validate the era names somehow however, so allow alternative
era names using the era codes from the "Intl era and monthCode" proposal.
@ptomato ptomato merged commit 16322d3 into tc39:main Jul 10, 2024
8 checks passed
@anba anba deleted the temporal-era-code branch July 10, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants