1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +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

@ -29,6 +29,7 @@ PlainTime::PlainTime(u8 iso_hour, u8 iso_minute, u8 iso_second, u16 iso_millisec
void PlainTime::visit_edges(Visitor& visitor)
{
Base::visit_edges(visitor);
visitor.visit(&m_calendar);
}