Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 12b12bf772973f3ed125ad07e9aaeec13929bbf7
https://github.com/WebKit/WebKit/commit/12b12bf772973f3ed125ad07e9aaeec13929bbf7
Author: Keita Nonaka <[email protected]>
Date: 2025-11-01 (Sat, 01 Nov 2025)
Changed paths:
A JSTests/stress/intl-timezone-legacy-non-iana.js
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp
M Source/JavaScriptCore/runtime/JSDateMath.h
Log Message:
-----------
[JSC] Make `Intl.DateTimeFormat` Throw `RangeError` for Legacy Non-IANA
Timezones to Align with TC39
https://bugs.webkit.org/show_bug.cgi?id=296248
Reviewed by Yusuke Suzuki.
This patch fixes the behavior of `Intl.DateTimeFormat` constructor [1] to throw
RangeError
for legacy non-IANA timezones to align with TC39 [2].
[1]: https://tc39.es/ecma402/#sec-createdatetimeformat
[2]: https://tc39.es/ecma402/#sec-use-of-iana-time-zone-database
* JSTests/stress/intl-timezone-legacy-non-iana.js: Added.
(shouldThrowRangeError):
(const.timeZone.of.invalidTimeZones.shouldThrowRangeError):
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp:
(JSC::availableNamedTimeZoneIdentifier):
* Source/JavaScriptCore/runtime/JSDateMath.h:
(JSC::isNonIANA):
Canonical link: https://commits.webkit.org/302447@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications