1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:27:35 +00:00

LibJS: Call base class visit_edges() in various Temporal objects

When overriding visit_edges() in a JS::Object subclass, we must make
sure to call the base class visit_edges(), or the object's Shape (and
any properties) will not get marked.
This commit is contained in:
Andreas Kling 2021-08-14 20:09:26 +02:00
parent 97c497f9fe
commit 286a7ecd92
4 changed files with 4 additions and 0 deletions

View file

@ -30,6 +30,7 @@ PlainDate::PlainDate(i32 year, u8 month, u8 day, Object& calendar, Object& proto
void PlainDate::visit_edges(Visitor& visitor)
{
Base::visit_edges(visitor);
visitor.visit(&m_calendar);
}