mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 17:12:55 +02:00
In FetchAlgorithms, it is common for callbacks to capture realms. This can indirectly keep objects alive that hold FetchController with these callbacks. This creates a cyclic dependency. However, when JS::HeapFunction is used, this is not a problem, as captured by callbacks values do not create new roots.