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

Add test with non-IANA time zone names #4005

Merged
merged 2 commits into from
Feb 12, 2024
Merged

Conversation

anba
Copy link
Contributor

@anba anba commented Feb 9, 2024

Time zone identifiers supported by ICU, but which aren't valid IANA identifiers.

@anba anba requested a review from a team as a code owner February 9, 2024 16:06
@anba
Copy link
Contributor Author

anba commented Feb 9, 2024

Non-IANA time zone ids should be rejected to avoid bug reports like: https://bugzilla.mozilla.org/show_bug.cgi?id=1879554.

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.

Makes sense. Would you like to write the same test additionally for new Temporal.TimeZone() and Temporal.TimeZone.from()?

@anba
Copy link
Contributor Author

anba commented Feb 12, 2024

Would you like to write the same test additionally for new Temporal.TimeZone() and Temporal.TimeZone.from()?

Sure. I've pushed 826de80 to cover Temporal.TimeZone, too.

anba added 2 commits February 12, 2024 12:03
Time zone identifiers supported by ICU, but which aren't valid IANA
identifiers.
Time zone identifiers supported by ICU, but which aren't valid IANA
identifiers.

Implementations not supporting ECMA-402 are theoretically allowed to
support these identifiers, so the tests have to go into the "intl402"
directory.
@Ms2ger Ms2ger force-pushed the legacy-icu-timezones branch from 826de80 to cd13992 Compare February 12, 2024 11:03
@Ms2ger Ms2ger enabled auto-merge (squash) February 12, 2024 11:03
@Ms2ger Ms2ger merged commit 53984cf into tc39:main Feb 12, 2024
8 of 9 checks passed
@anba anba deleted the legacy-icu-timezones branch February 12, 2024 14:04
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.

3 participants