mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:32:46 +00:00 
			
		
		
		
	LibJS: Convert internal_set_prototype_of() to ThrowCompletionOr
This commit is contained in:
		
							parent
							
								
									5148150e1c
								
							
						
					
					
						commit
						8c81c84c18
					
				
					 20 changed files with 43 additions and 50 deletions
				
			
		|  | @ -6,6 +6,7 @@ | |||
| 
 | ||||
| #include <AK/FlyString.h> | ||||
| #include <AK/StringBuilder.h> | ||||
| #include <LibJS/Runtime/Completion.h> | ||||
| #include <LibWeb/Bindings/LocationObject.h> | ||||
| #include <LibWeb/Bindings/WindowObject.h> | ||||
| #include <LibWeb/DOM/Document.h> | ||||
|  | @ -125,7 +126,7 @@ JS_DEFINE_NATIVE_FUNCTION(LocationObject::reload) | |||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/history.html#location-setprototypeof
 | ||||
| bool LocationObject::internal_set_prototype_of(Object* prototype) | ||||
| JS::ThrowCompletionOr<bool> LocationObject::internal_set_prototype_of(Object* prototype) | ||||
| { | ||||
|     // 1. Return ! SetImmutablePrototype(this, V).
 | ||||
|     return set_immutable_prototype(prototype); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh