1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

LibJS: Make GC deferral friendship based

This commit is contained in:
Hendiadyoin1 2023-09-23 13:44:13 +02:00 committed by Andreas Kling
parent 9871bd4bec
commit 87e063db65
3 changed files with 8 additions and 7 deletions

View file

@ -15,12 +15,12 @@ public:
explicit DeferGC(Heap& heap)
: m_heap(heap)
{
m_heap.defer_gc({});
m_heap.defer_gc();
}
~DeferGC()
{
m_heap.undefer_gc({});
m_heap.undefer_gc();
}
private: