summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Script.cpp')
-rw-r--r--Userland/Libraries/LibJS/Script.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Script.cpp b/Userland/Libraries/LibJS/Script.cpp
index 6c6c55fc5e..36f63acab5 100644
--- a/Userland/Libraries/LibJS/Script.cpp
+++ b/Userland/Libraries/LibJS/Script.cpp
@@ -43,6 +43,8 @@ void Script::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
visitor.visit(m_realm);
+ if (m_host_defined)
+ m_host_defined->visit_host_defined_self(visitor);
}
}