Closed
Bug 1636471
Opened 5 years ago
Closed 5 years ago
style:'unit' not supported by Intl.NumberFormat
Categories
(Core :: JavaScript: Internationalization API, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1633836
People
(Reporter: rkrupinski+github, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
I run this piece of EcmaScript in the JS console:
new Intl.NumberFormat('en-US', {
style: 'unit',
unit: 'kilometer',
}).format(123000)
Actual results:
RangeError: invalid value "unit" for option style debugger eval code:1:1
GetOption self-hosted:5613
InitializeNumberFormat self-hosted:6674
<anonymous> debugger eval code:1
Expected results:
As per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
expected to see:
"123,000 km"
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Component: Untriaged → JavaScript: Internationalization API
Product: Firefox → Core
Updated•5 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•