mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibJS: Port Intl locale resolution to String
This commit is contained in:
committed by
Linus Groh
parent
2f1184ccdb
commit
bb4b6d8ce3
Notes:
sideshowbarker
2024-07-17 03:19:14 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/bb4b6d8ce3 Pull-request: https://github.com/SerenityOS/serenity/pull/17092 Reviewed-by: https://github.com/linusg
@@ -105,7 +105,7 @@ ThrowCompletionOr<RelativeTimeFormat*> initialize_relative_time_format(VM& vm, R
|
||||
return vm.throw_completion<RangeError>(ErrorType::OptionIsNotValidValue, numbering_system, "numberingSystem"sv);
|
||||
|
||||
// 8. Set opt.[[nu]] to numberingSystem.
|
||||
opt.nu = TRY(numbering_system.as_string().deprecated_string());
|
||||
opt.nu = TRY(numbering_system.as_string().utf8_string());
|
||||
}
|
||||
|
||||
// 9. Let localeData be %RelativeTimeFormat%.[[LocaleData]].
|
||||
|
||||
Reference in New Issue
Block a user