WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
274974
[JSC] `fractionalDigits` of `Intl.DurationFormat` should be treated as at most 9 digits if it is omitted
https://bugs.webkit.org/show_bug.cgi?id=274974
Summary
[JSC] `fractionalDigits` of `Intl.DurationFormat` should be treated as at mos...
Sosuke Suzuki
Reported
2024-05-31 10:54:10 PDT
According to the spec[1], if the `fractionalDigits` option of `Intl.DurationFormat` is omitted, it should be treated as at most 9 digits. However, in the current JSC, it is treated as exact 0 digits. The README of the proposal repository[2] states the following: > If this option is omitted, only nonzero decimals will be displayed and trailing zeroes will be omitted. [1]:
https://tc39.es/proposal-intl-duration-format/#sec-partitiondurationformatpattern
( 4.f.ii.1.b ) [2]:
https://github.com/tc39/proposal-intl-duration-format#parameters
Attachments
Add attachment
proposed patch, testcase, etc.
Sosuke Suzuki
Comment 1
2024-05-31 11:02:02 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/29380
EWS
Comment 2
2024-06-02 21:16:42 PDT
Committed
279632@main
(d0e99dfc02ab): <
https://commits.webkit.org/279632@main
> Reviewed commits have been landed. Closing PR #29380 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2024-06-02 21:17:14 PDT
<
rdar://problem/129145390
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug