summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesConstructor.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-09-18 19:32:51 +0300
committerIdan Horowitz <idan.horowitz@gmail.com>2021-09-18 22:21:15 +0300
commitd0e5fc45760c9a14046399a0e2cf2d8647d2b018 (patch)
treeb2651e896586314bd50f51a0b0c66111896504c8 /Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesConstructor.cpp
parentde9785b71b5fd2779b6094a2d12022ad2e6df2bd (diff)
downloadserenity-d0e5fc45760c9a14046399a0e2cf2d8647d2b018.zip
LibJS: Convert supported_locales() to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesConstructor.cpp b/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesConstructor.cpp
index 6c543ba582..376fdcaadd 100644
--- a/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesConstructor.cpp
@@ -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));
}
}