Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editorial: Document that DefaultLocale() returns must not include a "…
…-u-" extension This is already required: * LookupMatcher can return { [[locale]]: DefaultLocale(), ... }. * ResolveLocale uses that result's [[locale]] as the name of a field in its _localeData_ argument and asserts that the corresponding value is a Record. * The _localeData_ argument to ResolveLocale is generally provided from the value of a service constructor's [[LocaleData]] slot. * "Internal slots of Service Constructors" constrains those slots to be Records "that have fields for each locale contained in [[AvailableLocales]]", and constrains their [[AvailableLocales]] slots to include only language tags that "must not have a Unicode locale extension sequence". Therefore, if DefaultLocale() *were* to return a value with a Unicode locale extension sequence, use of it in ResolveLocale would fail to find the required Record at a field with that name in e.g. the service constructor's [[LocaleData]].
- Loading branch information