From 01828edd37363e001bbe8accd5c238fb42969307 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 9 Aug 2022 12:35:38 +0200 Subject: [PATCH] LibJS: Add Cell::Visitor::visit(Cell&) --- Userland/Libraries/LibJS/Heap/Cell.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibJS/Heap/Cell.h b/Userland/Libraries/LibJS/Heap/Cell.h index 3660b0dd2a..fc266b4ccb 100644 --- a/Userland/Libraries/LibJS/Heap/Cell.h +++ b/Userland/Libraries/LibJS/Heap/Cell.h @@ -51,6 +51,10 @@ public: if (cell) visit_impl(*cell); } + void visit(Cell& cell) + { + visit_impl(cell); + } void visit(Value); protected: