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
274733
[JSC] `Intl.DurationFormat#resolvedOptions().fractionalDigits` should be `undefined` if `fractionalDigits` is `undefined`.
https://bugs.webkit.org/show_bug.cgi?id=274733
Summary
[JSC] `Intl.DurationFormat#resolvedOptions().fractionalDigits` should be `und...
Sosuke Suzuki
Reported
2024-05-26 14:02:58 PDT
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
Attachments
Add attachment
proposed patch, testcase, etc.
Sosuke Suzuki
Comment 1
2024-05-26 14:04:52 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/29128
EWS
Comment 2
2024-05-30 00:48:55 PDT
Committed
279503@main
(a43717459fdb): <
https://commits.webkit.org/279503@main
> Reviewed commits have been landed. Closing PR #29128 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2024-05-30 00:49:13 PDT
<
rdar://problem/128990476
>
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