Closed Bug 1569927 Opened 4 months ago Closed 4 months ago

Fractional seconds part name is "fractionalSecond" instead of "fractionalSecondDigits"

Categories

(Core :: JavaScript: Internationalization API, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: anba, Assigned: anba)

References

Details

Attachments

(1 file)

js> new Intl.DateTimeFormat("en", {fractionalSecondDigits: 1}).formatToParts(0)

should return [{type:"fractionalSecond", value:"4"}], but currently returns [{type:"fractionalSecondDigits", value:"4"}].

This is tested in https://github.com/tc39/test262/blob/master/test/intl402/DateTimeFormat/prototype/formatToParts/fractionalSecondDigits.js.

Blocks: 1570011

Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/52b026aec218
Use correct name for fractional second parts record. r=jwalden

Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.