mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 13:54:57 +00:00
LibJS+LibWeb: Make HTML::Script GC-allocated
This allows the garbage collector to keep HTML::Script objects alive and fixes a bug where a HTMLScriptElement could get GC'd while its code was executing.
This commit is contained in:
parent
00c8f07192
commit
8f9ed415a0
6 changed files with 35 additions and 12 deletions
|
@ -30,6 +30,7 @@ HTMLScriptElement::~HTMLScriptElement() = default;
|
|||
void HTMLScriptElement::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_script);
|
||||
visitor.visit(m_parser_document.ptr());
|
||||
visitor.visit(m_preparation_time_document.ptr());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue