mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibJS: Object needs to protect values in its storage
Otherwise the garbage collector will eat them way too soon! This made it impossible to use "js -g" without crashing.
This commit is contained in:
@@ -171,6 +171,9 @@ void Object::visit_children(Cell::Visitor& visitor)
|
||||
{
|
||||
Cell::visit_children(visitor);
|
||||
visitor.visit(m_shape);
|
||||
|
||||
for (auto& value : m_storage)
|
||||
visitor.visit(value);
|
||||
}
|
||||
|
||||
bool Object::has_own_property(const FlyString& property_name) const
|
||||
|
||||
Reference in New Issue
Block a user