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
commit 5d8784318d
Notes: sideshowbarker 2024-07-16 19:42:24 +09:00
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);