Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 70a75461959a91b29395c03ce7ba494745c37c0a
https://github.com/WebKit/WebKit/commit/70a75461959a91b29395c03ce7ba494745c37c0a
Author: itsu-dev <[email protected]>
Date: 2026-08-31 (Mon, 31 Aug 2026)
Changed paths:
M JSTests/stress/intl-durationformat-digital.js
M Source/JavaScriptCore/runtime/IntlDurationFormat.cpp
Log Message:
-----------
[JSC] [Intl.DurationFormat] Omit separator when minutes is hidden
https://bugs.webkit.org/show_bug.cgi?id=317486
Reviewed by Yusuke Suzuki.
`Intl.DurationFormat.prototype.format()` incorrectly appends a separator, such
as ":",
when both `hoursDisplay` and `minutesDisplay` are set to `"auto"` and the
`minutes`
value is 0. This patch fixes the condition for adding the separator so that it
is
only added when the minutes field is displayed.
No additional test file(s), but this patch adds a testcase to an existing
stress test.
* JSTests/stress/intl-durationformat-digital.js:
(Intl.DurationFormat.shouldBeOneOf):
* Source/JavaScriptCore/runtime/IntlDurationFormat.cpp:
(JSC::collectElements):
Canonical link: https://commits.webkit.org/320182@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications