mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-01 11:57:19 +02:00
LibWeb: Initialize HTML::EventLoop with its type
(cherry picked from commit 5d8784318d8240413e555bf2e55bc00d95ea0749)
This commit is contained in:
committed by
Nico Weber
parent
fd55229c0e
commit
f2e3d117a2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user