mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:28:12 +00:00
LibJS: Convert supported_locales() to ThrowCompletionOr
This commit is contained in:
parent
de9785b71b
commit
d0e5fc4576
5 changed files with 6 additions and 6 deletions
|
@ -80,7 +80,7 @@ JS_DEFINE_NATIVE_FUNCTION(NumberFormatConstructor::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