Bug 295853

Summary: [JSC] `Intl.Local#language` should return `"und"` if language subtag is `"und"`
Product: WebKit Reporter: Sosuke Suzuki <aosukeke>
Component: JavaScriptCoreAssignee: Sosuke Suzuki <aosukeke>
Status: RESOLVED FIXED    
Severity: Normal CC: lionel.rowe, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Sosuke Suzuki
Reported 2025-07-13 01:08:17 PDT
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
Attachments
Sosuke Suzuki
Comment 1 2025-07-13 01:11:09 PDT
Radar WebKit Bug Importer
Comment 2 2025-07-20 01:09:12 PDT
EWS
Comment 3 2025-07-25 06:05:04 PDT
Committed 297858@main (dabe534de31f): <https://commits.webkit.org/297858@main> Reviewed commits have been landed. Closing PR #47952 and removing active labels.
Karl Dubost
Comment 4 2025-08-18 15:56:33 PDT
*** Bug 282504 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.