Internationalization API: LocaleList removal

Norbert Lindenberg ecmascript at
Mon Jun 25 15:36:22 PDT 2012

Good idea. A frozen array is more restrictive than a LocaleList (which is extensible), but that's probably OK in this context. Or we could thaw it a bit...


On Jun 25, 2012, at 10:09 , Andreas Rossberg wrote:

> On 25 June 2012 19:00, Norbert Lindenberg
> <ecmascript at> wrote:
>> One side effect of removing LocaleList from the API is that the object returned from the supportedLocalesOf methods is now a simple Array, and therefore is modifiable. This probably prevents us from ever switching the return value of these methods back to a LocaleList, whose LocaleList properties (length and indexed elements 0..length-1) are immutable.
> Well, I don't see a reason why you couldn't return a frozen array then.
> /Andreas

More information about the es-discuss mailing list