LibWeb: Initialize HTML::EventLoop with its type

(cherry picked from commit 5d8784318d8240413e555bf2e55bc00d95ea0749)
This commit is contained in:
Andrew Kaster
2024-07-09 02:59:25 -06:00
committed by Nico Weber
parent fd55229c0e
commit f2e3d117a2
9 changed files with 11 additions and 10 deletions

View File

@@ -23,7 +23,8 @@ namespace Web::HTML {
JS_DEFINE_ALLOCATOR(EventLoop);
EventLoop::EventLoop()
EventLoop::EventLoop(Type type)
: m_type(type)
{
m_task_queue = heap().allocate_without_realm<TaskQueue>(*this);
m_microtask_queue = heap().allocate_without_realm<TaskQueue>(*this);