mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:32:45 +00:00 
			
		
		
		
	LibJS: Return specified object from Object.setPrototypeOf()
We were leaking an empty value.
This commit is contained in:
		
							parent
							
								
									a60a5bc70a
								
							
						
					
					
						commit
						1a64bdd80c
					
				
					 2 changed files with 13 additions and 1 deletions
				
			
		|  | @ -103,7 +103,7 @@ Value ObjectConstructor::set_prototype_of(Interpreter& interpreter) | |||
|     if (interpreter.exception()) | ||||
|         return {}; | ||||
|     object->set_prototype(&const_cast<Object&>(interpreter.argument(1).as_object())); | ||||
|     return {}; | ||||
|     return object; | ||||
| } | ||||
| 
 | ||||
| Value ObjectConstructor::is_extensible(Interpreter& interpreter) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh