Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dabe534de31f6b4507c0484fafe12259c7a2df81
https://github.com/WebKit/WebKit/commit/dabe534de31f6b4507c0484fafe12259c7a2df81
Author: Sosuke Suzuki <[email protected]>
Date: 2025-07-25 (Fri, 25 Jul 2025)
Changed paths:
A JSTests/stress/intl-locale-prototype-language-und.js
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/runtime/IntlLocale.cpp
Log Message:
-----------
[JSC] `Intl.Local#language` should return `"und"` if language subtag is
`"und"`
https://bugs.webkit.org/show_bug.cgi?id=295853
Reviewed by Yusuke Suzuki.
According to the spec, `Intl.Locale#lanauge` getter should return `"und"` if
language
subtag is `"und"`. But current JSC returns `undefined`.
This patch changes to fix it in the same wasy as V8[2].
[1]: https://tc39.es/ecma402/#sec-getlocalelanguage
[2]:
https://github.com/v8/v8/blob/8d147aa1fbaebe7d85eeaf99b70a2593f5f7ac7c/src/objects/js-locale.cc#L801-L81
* JSTests/stress/intl-locale-prototype-language-und.js: Added.
(shouldBe):
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/IntlLocale.cpp:
(JSC::IntlLocale::language):
Canonical link: https://commits.webkit.org/297858@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes