diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-07-09 14:42:30 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-11 18:54:13 +0200 |
commit | 51bfc6c6b3756e808300908ce520634f79957cfd (patch) | |
tree | b76f5a234c9f55f7e0f30185cf3c6228c62f4c8f /Libraries/LibJS/AST.cpp | |
parent | e650be98a1f65abeb197683f7732dfb96cc1888e (diff) | |
download | serenity-51bfc6c6b3756e808300908ce520634f79957cfd.zip |
LibJS: Renamed Object::GetOwnPropertyReturnMode to Object::PropertyKind
This enum will be used by iterators, so it makes sense to use a more
general name.
Diffstat (limited to 'Libraries/LibJS/AST.cpp')
-rw-r--r-- | Libraries/LibJS/AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/AST.cpp b/Libraries/LibJS/AST.cpp index f1b1cd45bb..86e13095f5 100644 --- a/Libraries/LibJS/AST.cpp +++ b/Libraries/LibJS/AST.cpp @@ -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()) |