summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-09 12:35:38 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-03 00:36:26 +0200
commit01828edd37363e001bbe8accd5c238fb42969307 (patch)
tree673047b87b89910af28ed174fb3cddc87384653b
parente34e21367e73b7bc6e8959f47a2bb3fe2aa01fad (diff)
downloadserenity-01828edd37363e001bbe8accd5c238fb42969307.zip
LibJS: Add Cell::Visitor::visit(Cell&)
-rw-r--r--Userland/Libraries/LibJS/Heap/Cell.h4
1 files changed, 4 insertions, 0 deletions
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: