mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
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:
parent
e650be98a1
commit
51bfc6c6b3
Notes:
sideshowbarker
2024-07-19 04:56:45 +09:00
Author: https://github.com/mattco98
Commit: 51bfc6c6b3
Pull-request: https://github.com/SerenityOS/serenity/pull/2751
Reviewed-by: https://github.com/linusg ✅
5 changed files with 14 additions and 14 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue