summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-12-28 17:57:09 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-03 21:50:50 +0100
commit95acb1ce885b2d2b833e6f4e3b12dfd41b50bc80 (patch)
treeecb732c41a50d7dbcc0635f66b86d78a03dbaffe /Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
parent032e6a2d281008919ef8efd52c0d7b9d1784e60f (diff)
downloadserenity-95acb1ce885b2d2b833e6f4e3b12dfd41b50bc80.zip
LibJS: Don't assume non-empty [[Value]] in Completion TRY() helpers
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
index 5ad4293a26..a2851992d0 100644
--- a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
@@ -226,7 +226,7 @@ JS_DEFINE_NATIVE_FUNCTION(ObjectConstructor::from_entries)
auto* object = Object::create(global_object, global_object.object_prototype());
- TRY(get_iterator_values(global_object, iterable, [&](Value iterator_value) -> Optional<Completion> {
+ (void)TRY(get_iterator_values(global_object, iterable, [&](Value iterator_value) -> Optional<Completion> {
if (!iterator_value.is_object())
return vm.throw_completion<TypeError>(global_object, ErrorType::NotAnObject, String::formatted("Iterator value {}", iterator_value.to_string_without_side_effects()));