mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02:45 +00:00 
			
		
		
		
	LibWeb: Port Stream algorithms from JS::SafeFunction to JS::HeapFunction
This commit is contained in:
		
							parent
							
								
									e118430648
								
							
						
					
					
						commit
						5f484d200a
					
				
					 14 changed files with 211 additions and 189 deletions
				
			
		|  | @ -71,7 +71,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<WebIDL::Promise>> ReadableStreamDefaultCont | |||
|     reset_queue(*this); | ||||
| 
 | ||||
|     // 2. Let result be the result of performing this.[[cancelAlgorithm]], passing reason.
 | ||||
|     auto result = (*cancel_algorithm())(reason); | ||||
|     auto result = cancel_algorithm()->function()(reason); | ||||
| 
 | ||||
|     // 3. Perform ! ReadableStreamDefaultControllerClearAlgorithms(this).
 | ||||
|     readable_stream_default_controller_clear_algorithms(*this); | ||||
|  | @ -138,6 +138,9 @@ void ReadableStreamDefaultController::visit_edges(Cell::Visitor& visitor) | |||
|     for (auto const& item : m_queue) | ||||
|         visitor.visit(item.value); | ||||
|     visitor.visit(m_stream); | ||||
|     visitor.visit(m_cancel_algorithm); | ||||
|     visitor.visit(m_pull_algorithm); | ||||
|     visitor.visit(m_strategy_size_algorithm); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shannon Booth
						Shannon Booth