diff --git a/Libraries/LibJS/Heap/Cell.h b/Libraries/LibJS/Heap/Cell.h index 5da037ef279..80faba34700 100644 --- a/Libraries/LibJS/Heap/Cell.h +++ b/Libraries/LibJS/Heap/Cell.h @@ -70,6 +70,16 @@ public: visit_impl(cell); } + void visit(Cell const* cell) + { + visit(const_cast(cell)); + } + + void visit(Cell const& cell) + { + visit(const_cast(cell)); + } + template void visit(GCPtr cell) {