mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:52:44 +00:00 
			
		
		
		
	LibJS: ArrayIterator needs to mark the array it's iterating
This commit is contained in:
		
							parent
							
								
									3143fea1eb
								
							
						
					
					
						commit
						d467a0ffef
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -45,4 +45,10 @@ ArrayIterator::~ArrayIterator() | |||
| { | ||||
| } | ||||
| 
 | ||||
| void ArrayIterator::visit_children(Cell::Visitor & visitor) | ||||
| { | ||||
|     Base::visit_children(visitor); | ||||
|     visitor.visit(m_array); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling