ecma402 icon indicating copy to clipboard operation
ecma402 copied to clipboard

AvailableCurrencies and default fallback for unsupported currencies in NumberFormat

Open anba opened this issue 4 years ago • 1 comments

https://tc39.es/proposal-intl-enumeration/#sec-availablecurrencies:

[...] currencies for which the implementation provides the functionality of Intl.DisplayNames and Intl.NumberFormat objects.

But in PartitionNumberPattern, step 8.k.iii:

[...] If the implementation does not have such a representation of currency, use currency itself.

So strictly speaking an implementation is required to provide functionality for any currency code, even if the currency code doesn't match any currency. I don't know how to best describe that situation in AvailableCurrencies().

anba avatar Sep 08 '21 13:09 anba

TG2 discussion: https://github.com/tc39/ecma402/blob/master/meetings/notes-2022-10-06.md#intl-enumeration-api-for-stage-4

Conclusion: Try to clarify the wording. This does not need to block Stage 4.

sffc avatar Oct 06 '22 19:10 sffc