diff --git a/Userland/Libraries/LibJS/Bytecode/Op.cpp b/Userland/Libraries/LibJS/Bytecode/Op.cpp index 842273b5ba..d2a617af9d 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Op.cpp @@ -1189,7 +1189,7 @@ ThrowCompletionOr GetObjectPropertyIterator::execute_impl(Bytecode::Interp .iterator = object, .next_method = NativeFunction::create( interpreter.realm(), - [seen_items = HashTable(), items = move(properties)](VM& vm) mutable -> ThrowCompletionOr { + [items = move(properties)](VM& vm) mutable -> ThrowCompletionOr { auto& realm = *vm.current_realm(); auto iterated_object_value = vm.this_value(); if (!iterated_object_value.is_object()) @@ -1205,11 +1205,6 @@ ThrowCompletionOr GetObjectPropertyIterator::execute_impl(Bytecode::Interp auto key = items.take_first(); - // If the key was already seen, skip over it (invariant no. 4) - auto result = seen_items.set(key); - if (result != AK::HashSetResult::InsertedNewEntry) - continue; - // If the property is deleted, don't include it (invariant no. 2) if (!TRY(iterated_object.has_property(key))) continue;