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

LibWeb+LibJS: Let JS::Realm::HostDefined objects mark things during GC

This allows us to mark the HTML::Window from our window environment
settings object.
This commit is contained in:
Andreas Kling 2022-09-01 21:22:02 +02:00
parent 2ff7e37048
commit abfb73f2e7
4 changed files with 18 additions and 3 deletions

View file

@ -25,6 +25,8 @@ class Realm final
public:
struct HostDefined {
virtual ~HostDefined() = default;
virtual void visit_edges(Cell::Visitor&) { }
};
static Realm* create(VM&);