-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to reflect normative change in formatting when Intl.DurationFormat's fractionalDigits option is undefined #3890
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also test what happens when you don't end up with a multiple of three fractional digits (e.g. milliseconds: 110
)
54176af
to
a329844
Compare
This PR is wrong
between the end of the comment. |
This test is wrong |
Also fixed by #3983 |
tc39/proposal-intl-duration-format#144 recently changed the behaviour of Intl.DurationFormat when the number of fractional digits (i.e. sub-second values) is left undefined. prototype/format/style-digital-fractionalDigits-undefined.js tests for this case, prototype/format/style-digital-fractionalDigits.js provides additional test coverage for fractional digits in general.