mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
LibWeb: Mark local variables captured in GC functions as ignored
These variables are all captured in queued events or other event loop tasks, but are all guarded by event loop spins later in the function. The IGNORE_USE_IN_ESCAPING_LAMBDA will soon be required for all locals that are captured by ref in GC::Function as well as AK::Function.
This commit is contained in:
committed by
Andreas Kling
parent
31d21570bf
commit
6ed2bf2bb1
@@ -280,7 +280,7 @@ void EventSource::announce_the_connection()
|
||||
// https://html.spec.whatwg.org/multipage/server-sent-events.html#reestablish-the-connection
|
||||
void EventSource::reestablish_the_connection()
|
||||
{
|
||||
bool initial_task_has_run { false };
|
||||
IGNORE_USE_IN_ESCAPING_LAMBDA bool initial_task_has_run { false };
|
||||
|
||||
// 1. Queue a task to run the following steps:
|
||||
HTML::queue_a_task(HTML::Task::Source::RemoteEvent, nullptr, nullptr, GC::create_function(heap(), [&]() {
|
||||
|
||||
Reference in New Issue
Block a user