-
Notifications
You must be signed in to change notification settings - Fork 478
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 Intl.Locale
test for language
getter where language subtag is "und"
#4393
Comments
I'm not sure if Firefox's is the correct behaviour. I'm looking at Canonical Unicode Locale Identifiers and I don't understand all of the terms there, but I do note that it has a special case to exclude However, it does seem to me that Chrome and Safari's behaviour is incorrect. The loc.[[Locale]] slot being undefined fails several assertions in the spec, so it should not be possible to return |
That's probably happening for "Unicode CLDR locale identifier", but ECMA-402 uses "Unicode BCP 47 locale identifiers". |
The [[Locale]] slot of a Locale instance must always be a Unicode canonicalized locale identifier string, which for input "und" is "und" and for input "und-US-u-co-emoji" is "und-US-u-co-emoji" (i.e., both are already in canonical form). The |
OK, thanks! |
Currently, both Chromium (bug) and Safari (bug) fail the following:
Firefox has the correct behavior.
Could be useful to have a test for this specific case.
The text was updated successfully, but these errors were encountered: