summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Object.cpp')
-rw-r--r--Libraries/LibJS/Object.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Libraries/LibJS/Object.cpp b/Libraries/LibJS/Object.cpp
index 53f010681d..2d4f021a9f 100644
--- a/Libraries/LibJS/Object.cpp
+++ b/Libraries/LibJS/Object.cpp
@@ -51,10 +51,8 @@ void Object::put(String property_name, Value value)
void Object::visit_children(Cell::Visitor& visitor)
{
Cell::visit_children(visitor);
- for (auto& it : m_properties) {
- if (it.value.is_object())
- visitor.visit(it.value.as_object());
- }
+ for (auto& it : m_properties)
+ visitor.visit(it.value);
}
}