mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibJS: Convert supported_locales() to ThrowCompletionOr
This commit is contained in:
parent
de9785b71b
commit
d0e5fc4576
Notes:
sideshowbarker
2024-07-18 03:42:43 +09:00
Author: https://github.com/IdanHo
Commit: d0e5fc4576
Pull-request: https://github.com/SerenityOS/serenity/pull/10121
Reviewed-by: https://github.com/linusg ✅
5 changed files with 6 additions and 6 deletions
|
@ -131,7 +131,7 @@ JS_DEFINE_NATIVE_FUNCTION(DisplayNamesConstructor::supported_locales_of)
|
|||
return {};
|
||||
|
||||
// 3. Return ? SupportedLocales(availableLocales, requestedLocales, options).
|
||||
return supported_locales(global_object, requested_locales, options);
|
||||
return TRY_OR_DISCARD(supported_locales(global_object, requested_locales, options));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue