[Webkit-unassigned] [Bug 274733] New: [JSC] `Intl.DurationFormat#resolvedOptions().fractionalDigits` should be `undefined` if `fractionalDigits` is `undefined`.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 26 14:02:58 PDT 2024


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

            Bug ID: 274733
           Summary: [JSC]
                    `Intl.DurationFormat#resolvedOptions().fractionalDigit
                    s` should be `undefined` if `fractionalDigits` is
                    `undefined`.
           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], when creating a `DurationFormat` instance with
    `new Intl.DurationFormat(locales, { fractionalDigits: undefined });`,
    `Intl.DurationFormat#resolvedOptions().fractionalDigits` should be `undefined`. However, in the
    current JSC, it is `0`. This was occurring because, according to the spec[2], the
    `fallback` argument of the `GetNumberOption` abstract operation should be `undefined`, but we were
    passing `0`.

    [1]: https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions
    [2]: https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat

-- 
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/20240526/fe9a018b/attachment.htm>


More information about the webkit-unassigned mailing list