mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +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:
@@ -77,7 +77,7 @@ private:
|
||||
|
||||
Function<void()> m_script_ready_callback;
|
||||
|
||||
RefPtr<Script> m_script;
|
||||
JS::GCPtr<Script> m_script;
|
||||
|
||||
Optional<DOM::DocumentLoadEventDelayer> m_document_load_event_delayer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user