mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 13:04:39 +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",
|
"notalanguage",
|
||||||
"undefined",
|
"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.
|
// Value contains more than just the 'language' production.
|
||||||
"fr-Latn",
|
"fr-Latn",
|
||||||
"fr-FR",
|
"fr-FR",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user