mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS: Migrate remaining Intl objects to use ResolveOptions
This is an editorial change in the ECMA-402 spec. See:
75e67db
This commit is contained in:
parent
3f55240a8e
commit
2729c88154
Notes:
github-actions[bot]
2025-04-08 10:52:47 +00:00
Author: https://github.com/trflynn89
Commit: 2729c88154
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4275
8 changed files with 92 additions and 215 deletions
|
@ -23,17 +23,6 @@
|
|||
|
||||
namespace JS::Intl {
|
||||
|
||||
Optional<LocaleKey> locale_key_from_value(Value value)
|
||||
{
|
||||
if (value.is_undefined())
|
||||
return OptionalNone {};
|
||||
if (value.is_null())
|
||||
return Empty {};
|
||||
if (value.is_string())
|
||||
return value.as_string().utf8_string();
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
// 6.2.1 IsStructurallyValidLanguageTag ( locale ), https://tc39.es/ecma402/#sec-isstructurallyvalidlanguagetag
|
||||
bool is_structurally_valid_language_tag(StringView locale)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue