diff --git a/Libraries/LibJS/Runtime/Cell.h b/Libraries/LibJS/Runtime/Cell.h index f58ab904f1..f9ae449ab3 100644 --- a/Libraries/LibJS/Runtime/Cell.h +++ b/Libraries/LibJS/Runtime/Cell.h @@ -27,11 +27,15 @@ #pragma once #include +#include #include namespace JS { class Cell { + AK_MAKE_NONCOPYABLE(Cell); + AK_MAKE_NONMOVABLE(Cell); + public: virtual ~Cell() {} @@ -54,6 +58,9 @@ public: Heap& heap() const; Interpreter& interpreter(); +protected: + Cell() {} + private: bool m_mark { false }; bool m_live { true };