LibJS: Add const versions of Cell::visit

This commit is contained in:
Shannon Booth 2024-11-14 19:28:41 +13:00 committed by Andreas Kling
parent 1bcc6764ae
commit c0bcebeb08
Notes: github-actions[bot] 2024-11-14 14:39:58 +00:00

View file

@ -70,6 +70,16 @@ public:
visit_impl(cell);
}
void visit(Cell const* cell)
{
visit(const_cast<Cell*>(cell));
}
void visit(Cell const& cell)
{
visit(const_cast<Cell&>(cell));
}
template<typename T>
void visit(GCPtr<T> cell)
{