Status: Untriaged
Owner: ----
New issue 4216 by [email protected]: Invalid default locale not
handled in Intl
https://code.google.com/p/v8/issues/detail?id=4216
Version: 7142b0d211b732e1c119fded80f43fbbd9cea0f8
What steps will reproduce the problem?
1. Start d8 with bogus locale setting
LC_ALL="tlh-FR" out/x64.release/d8
2. Run in d8
d8> new Intl.NumberFormat().resolvedOptions().locale
"tlh-FR"
d8> Intl.NumberFormat.supportedLocalesOf("tlh-FR")
[]
What is the expected output?
- supportedLocalesOf() with the default locale should never return an empty
array
- The default locale should be set to a supported locale, e.g. "en"
or "en-GB"
What do you see instead?
- supportedLocalesOf() with the default locale returns an empty array
This is specified in ECMA-402, 2nd ed., 9.1 Internal slots of Service
Constructors, definition for [[availableLocales]]:
"The list must include the value returned by the DefaultLocale abstract
operation (6.2.4), [...]"
Same restriction is present in ECMA-402, 1st ed.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.