Bug 295853
| Summary: | [JSC] `Intl.Local#language` should return `"und"` if language subtag is `"und"` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <aosukeke> |
| Component: | JavaScriptCore | Assignee: | 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
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
Pull request: https://github.com/WebKit/WebKit/pull/47952
Radar WebKit Bug Importer
<rdar://problem/156248659>
EWS
Committed 297858@main (dabe534de31f): <https://commits.webkit.org/297858@main>
Reviewed commits have been landed. Closing PR #47952 and removing active labels.
Karl Dubost
*** Bug 282504 has been marked as a duplicate of this bug. ***