LibJS: Convert supported_locales() to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-09-18 19:32:51 +03:00
commit d0e5fc4576
Notes: sideshowbarker 2024-07-18 03:42:43 +09:00
5 changed files with 6 additions and 6 deletions

View file

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