mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:32:46 +00:00 
			
		
		
		
	LibJS: Change Value::to_object(Heap& -> Interpreter&)
Passing a Heap& to it only to then call interpreter() on that is weird. Let's just give it the Interpreter& directly, like some of the other to_something() functions.
This commit is contained in:
		
							parent
							
								
									b8b7f84547
								
							
						
					
					
						commit
						1a1394f7a2
					
				
					 26 changed files with 56 additions and 57 deletions
				
			
		|  | @ -50,7 +50,7 @@ EventTargetWrapper::~EventTargetWrapper() | |||
| 
 | ||||
| JS::Value EventTargetWrapper::add_event_listener(JS::Interpreter& interpreter) | ||||
| { | ||||
|     auto* this_object = interpreter.this_value().to_object(interpreter.heap()); | ||||
|     auto* this_object = interpreter.this_value().to_object(interpreter); | ||||
|     if (!this_object) | ||||
|         return {}; | ||||
|     auto& arguments = interpreter.call_frame().arguments; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh