Skip to content
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

Merged
merged 4 commits into from
Oct 3, 2023

Conversation

ben-allen
Copy link
Contributor

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.

@ben-allen ben-allen requested a review from a team as a code owner August 8, 2023 00:11
Copy link
Contributor

@Ms2ger Ms2ger left a 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)

@Ms2ger Ms2ger enabled auto-merge (squash) October 3, 2023 11:31
@Ms2ger Ms2ger merged commit 47eb8dd into tc39:main Oct 3, 2023
1 check passed
@FrankYFTang
Copy link
Contributor

This PR is wrong
you need to have the line

features: [Intl.DurationFormat]

between the end of the comment.

@FrankYFTang
Copy link
Contributor

This test is wrong
There is no
durationFiveFractional
nor durationMilli defined in
test/intl402/DurationFormat/prototype/format/style-digital-fractionalDigits-undefined.js

@ben-allen @Ms2ger

FrankYFTang added a commit to FrankYFTang/test262 that referenced this pull request Apr 11, 2024
@anba
Copy link
Contributor

anba commented Apr 11, 2024

Also fixed by #3983

Ms2ger pushed a commit that referenced this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants