LibWeb: Initialize HTML::EventLoop with its type

This commit is contained in:
Andrew Kaster
2024-07-09 02:59:25 -06:00
committed by Andreas Kling
parent aa4e18fca5
commit 5d8784318d
10 changed files with 12 additions and 11 deletions

View File

@@ -24,7 +24,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);