diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/WeakMap.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/WeakMap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/WeakMap.h b/Userland/Libraries/LibJS/Runtime/WeakMap.h index 18a6b74305..2f7c01b2d1 100644 --- a/Userland/Libraries/LibJS/Runtime/WeakMap.h +++ b/Userland/Libraries/LibJS/Runtime/WeakMap.h @@ -30,6 +30,8 @@ public: virtual void remove_swept_cells(Badge<Heap>, Span<Cell*>) override; private: + virtual void did_become_zombie() override { deregister(); } + HashMap<Cell*, Value> m_values; // This stores Cell pointers instead of Object pointers to aide with sweeping }; |