mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
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:
parent
49fd92d92a
commit
d54ba587f3
Notes:
sideshowbarker
2024-07-17 07:38:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d54ba587f3 Pull-request: https://github.com/SerenityOS/serenity/pull/15061 Reviewed-by: https://github.com/linusg ✅
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ public: \
|
|||
virtual StringView class_name() const override \
|
||||
{ \
|
||||
return #class_##sv; \
|
||||
}
|
||||
} \
|
||||
friend class JS::Heap;
|
||||
|
||||
class Cell {
|
||||
AK_MAKE_NONCOPYABLE(Cell);
|
||||
|
|
Loading…
Reference in a new issue