mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 00:22:43 +02:00
If a function that captures a GC-allocated object is owned by another GC-allocated object, it is more preferable to use JS::HeapFunction. This is because JS::HeapFunction is visited, unlike introducing a new heap root as JS::SafeFunction does.
3.3 KiB
3.3 KiB