LibJS+LibWeb: Remove remaining use and reference to SafeFunction

This commit is contained in:
Shannon Booth 2024-10-31 06:26:26 +13:00 committed by Alexander Kalenik
commit 797b0d0f43
Notes: github-actions[bot] 2024-10-30 19:56:42 +00:00
26 changed files with 10 additions and 335 deletions

View file

@ -197,7 +197,7 @@ void EventTarget::add_an_event_listener(DOMEventListener& listener)
// 5. If listeners signal is not null, then add the following abort steps to it:
if (listener.signal) {
// NOTE: `this` and `listener` are protected by AbortSignal using JS::SafeFunction.
// NOTE: `this` and `listener` are protected by AbortSignal using JS::HeapFunction.
listener.signal->add_abort_algorithm([this, &listener] {
// 1. Remove an event listener with eventTarget and listener.
remove_an_event_listener(listener);