mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 12:34:41 +02:00
Test that Intl.Locale language "root" is rejected
cf. https://unicode.org/reports/tr35/#unicode_bcp47_locale_id
This commit is contained in:
parent
a4501647e3
commit
fbc6833c24
@ -39,6 +39,11 @@ const invalidLanguageOptions = [
|
||||
"notalanguage",
|
||||
"undefined",
|
||||
|
||||
// "root" is treated as a special `unicode_language_subtag`, but is not
|
||||
// actually one and is not valid in a Unicode BCP 47 locale identifier.
|
||||
// https://unicode.org/reports/tr35/#unicode_bcp47_locale_id
|
||||
"root",
|
||||
|
||||
// Value contains more than just the 'language' production.
|
||||
"fr-Latn",
|
||||
"fr-FR",
|
||||
|
Loading…
x
Reference in New Issue
Block a user