mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Use HeapFunction for Platform::Timer
This commit is contained in:
committed by
Alexander Kalenik
parent
ede3c91688
commit
de1a805898
@@ -54,9 +54,9 @@ void EventLoop::visit_edges(Visitor& visitor)
|
||||
void EventLoop::schedule()
|
||||
{
|
||||
if (!m_system_event_loop_timer) {
|
||||
m_system_event_loop_timer = Platform::Timer::create_single_shot(heap(), 0, [this] {
|
||||
m_system_event_loop_timer = Platform::Timer::create_single_shot(heap(), 0, JS::create_heap_function(heap(), [this] {
|
||||
process();
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
if (!m_system_event_loop_timer->is_active())
|
||||
|
||||
Reference in New Issue
Block a user