LibJS: Renamed Object::GetOwnPropertyReturnMode to Object::PropertyKind

This enum will be used by iterators, so it makes sense to use a more
general name.
This commit is contained in:
Matthew Olsson 2020-07-09 14:42:30 -07:00 committed by Andreas Kling
commit 51bfc6c6b3
Notes: sideshowbarker 2024-07-19 04:56:45 +09:00
5 changed files with 14 additions and 14 deletions

View file

@ -383,7 +383,7 @@ Value ForInStatement::execute(Interpreter& interpreter, GlobalObject& global_obj
return {};
auto* object = rhs_result.to_object(interpreter, global_object);
while (object) {
auto property_names = object->get_own_properties(*object, Object::GetOwnPropertyReturnMode::Key, true);
auto property_names = object->get_own_properties(*object, Object::PropertyKind::Key, true);
for (auto& property_name : property_names.as_object().indexed_properties()) {
interpreter.set_variable(variable_name, property_name.value_and_attributes(object).value, global_object);
if (interpreter.exception())