1
Fork 0
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:
Idan Horowitz 2021-09-18 19:32:51 +03:00
parent de9785b71b
commit d0e5fc4576
5 changed files with 6 additions and 6 deletions

View file

@ -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));
}
}