[Webkit-unassigned] [Bug 274974] New: [JSC] `fractionalDigits` of `Intl.DurationFormat` should be treated as at most 9 digits if it is omitted

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 31 10:54:10 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=274974

            Bug ID: 274974
           Summary: [JSC] `fractionalDigits` of `Intl.DurationFormat`
                    should be treated as at most 9 digits if it is omitted
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aosukeke at gmail.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240531/105e7260/attachment.htm>


More information about the webkit-unassigned mailing list