Skip to content

Add test with non-IANA time zone names#4005

Merged
Ms2ger merged 2 commits intotc39:mainfrom
anba:legacy-icu-timezones
Feb 12, 2024
Merged

Add test with non-IANA time zone names#4005
Ms2ger merged 2 commits intotc39:mainfrom
anba:legacy-icu-timezones

Conversation

@anba
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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