mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-26 17:47:19 +00:00
LibWeb: Initialize HTML::EventLoop with its type
This commit is contained in:
committed by
Andreas Kling
parent
aa4e18fca5
commit
5d8784318d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user