LibJS: Make Heap a friend of everyone who uses JS_CELL

This will allow Heap to invoke non-public constructors when allocating
new cells.
This commit is contained in:
Andreas Kling 2022-08-28 22:13:05 +02:00
parent 49fd92d92a
commit d54ba587f3
Notes: sideshowbarker 2024-07-17 07:38:46 +09:00

View file

@ -20,7 +20,8 @@ public: \
virtual StringView class_name() const override \
{ \
return #class_##sv; \
}
} \
friend class JS::Heap;
class Cell {
AK_MAKE_NONCOPYABLE(Cell);