diff options
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r-- | Libraries/LibJS/Runtime/ArrayIterator.cpp | 6 | ||||
-rw-r--r-- | Libraries/LibJS/Runtime/ArrayIterator.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/ArrayIterator.cpp b/Libraries/LibJS/Runtime/ArrayIterator.cpp index 501492b5ad..926495ef44 100644 --- a/Libraries/LibJS/Runtime/ArrayIterator.cpp +++ b/Libraries/LibJS/Runtime/ArrayIterator.cpp @@ -45,4 +45,10 @@ ArrayIterator::~ArrayIterator() { } +void ArrayIterator::visit_children(Cell::Visitor & visitor) +{ + Base::visit_children(visitor); + visitor.visit(m_array); +} + } diff --git a/Libraries/LibJS/Runtime/ArrayIterator.h b/Libraries/LibJS/Runtime/ArrayIterator.h index 408349f188..aefa1583a4 100644 --- a/Libraries/LibJS/Runtime/ArrayIterator.h +++ b/Libraries/LibJS/Runtime/ArrayIterator.h @@ -47,6 +47,7 @@ private: friend class ArrayIteratorPrototype; virtual bool is_array_iterator_object() const override { return true; } + virtual void visit_children(Cell::Visitor&) override; Value m_array; Object::PropertyKind m_iteration_kind; |