1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

LibJS: Remove a bunch of forgotten exception checks after TRY_OR_DISCARD

Not quite sure how that happened :^)
This commit is contained in:
Linus Groh 2021-10-18 18:56:58 +01:00
parent 64aaf263a2
commit ffee3890a7
9 changed files with 0 additions and 18 deletions

View file

@ -127,8 +127,6 @@ JS_DEFINE_NATIVE_FUNCTION(DisplayNamesConstructor::supported_locales_of)
// 2. Let requestedLocales be ? CanonicalizeLocaleList(locales).
auto requested_locales = TRY_OR_DISCARD(canonicalize_locale_list(global_object, locales));
if (vm.exception())
return {};
// 3. Return ? SupportedLocales(availableLocales, requestedLocales, options).
return TRY_OR_DISCARD(supported_locales(global_object, requested_locales, options));