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
295853
[JSC] `Intl.Local#language` should return `"und"` if language subtag is `"und"`
https://bugs.webkit.org/show_bug.cgi?id=295853
Summary
[JSC] `Intl.Local#language` should return `"und"` if language subtag is `"und"`
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
Add attachment
proposed patch, testcase, etc.
Sosuke Suzuki
Comment 1
2025-07-13 01:11:09 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/47952
Radar WebKit Bug Importer
Comment 2
2025-07-20 01:09:12 PDT
<
rdar://problem/156248659
>
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.
Top of Page
Format For Printing
XML
Clone This Bug