1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:08:12 +00:00

LibJS: Convert internal_own_property_keys() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-09-29 18:58:03 +01:00
parent fbfb0bb908
commit ee8380edea
15 changed files with 56 additions and 92 deletions

View file

@ -192,9 +192,10 @@ void CopyObjectExcludingProperties::execute_impl(Bytecode::Interpreter& interpre
return;
}
auto own_keys = from_object->internal_own_property_keys();
if (interpreter.vm().exception())
auto own_keys_or_error = from_object->internal_own_property_keys();
if (own_keys_or_error.is_error())
return;
auto own_keys = own_keys_or_error.release_value();
for (auto& key : own_keys) {
if (!excluded_names.contains(key)) {