diff options
author | Linus Groh <mail@linusgroh.de> | 2021-12-28 17:57:09 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-03 21:50:50 +0100 |
commit | 95acb1ce885b2d2b833e6f4e3b12dfd41b50bc80 (patch) | |
tree | ecb732c41a50d7dbcc0635f66b86d78a03dbaffe /Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp | |
parent | 032e6a2d281008919ef8efd52c0d7b9d1784e60f (diff) | |
download | serenity-95acb1ce885b2d2b833e6f4e3b12dfd41b50bc80.zip |
LibJS: Don't assume non-empty [[Value]] in Completion TRY() helpers
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp b/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp index bf2fec5147..07e13c3b2c 100644 --- a/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/WeakSetConstructor.cpp @@ -55,7 +55,7 @@ ThrowCompletionOr<Object*> WeakSetConstructor::construct(FunctionObject& new_tar if (!adder.is_function()) return vm.throw_completion<TypeError>(global_object, ErrorType::NotAFunction, "'add' property of WeakSet"); - TRY(get_iterator_values(global_object, vm.argument(0), [&](Value iterator_value) -> Optional<Completion> { + (void)TRY(get_iterator_values(global_object, vm.argument(0), [&](Value iterator_value) -> Optional<Completion> { TRY(vm.call(adder.as_function(), Value(weak_set), iterator_value)); return {}; })); |