Closed
Bug 1638298
Opened 4 years ago
Closed 4 years ago
NumberFormat RangeError: invalid value "unit" for option style
Categories
(Core :: JavaScript: Internationalization API, task)
Tracking
()
RESOLVED
DUPLICATE
of bug 1633836
People
(Reporter: s.birbalta, Unassigned)
Details
(Keywords: parity-chrome)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
Execute the following JavaScript, for example in the developer console
console.log(new Intl.NumberFormat("en-US", {
style: 'unit',
unit: "hour"
}).format(50));
Actual results:
RangeError: invalid value "unit" for option style
Expected results:
50 hr
This bug doesn't appear in Firefox Nightly v78.
Can you release a hotfix for this or should we work-around this issue in our web app.
Comment 2•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Component: Untriaged → Internationalization
Product: Firefox → Core
Comment 3•4 years ago
|
||
The spec is modified by https://github.com/tc39/ecma402/pull/404
Status: UNCONFIRMED → NEW
Type: defect → task
Component: Internationalization → JavaScript: Internationalization API
Ever confirmed: true
Keywords: parity-chrome
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•