mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	LibJS+LibWeb: Use Object::set_prototype() in more places
This commit is contained in:
		
							parent
							
								
									84c9f3e0d0
								
							
						
					
					
						commit
						ba6e4c7ae1
					
				
					 5 changed files with 5 additions and 10 deletions
				
			
		|  | @ -1568,8 +1568,7 @@ namespace Web::Bindings { | |||
| @wrapper_class@::@wrapper_class@(JS::GlobalObject& global_object, @fully_qualified_name@& impl) | ||||
|     : @wrapper_base_class@(global_object, impl) | ||||
| { | ||||
|     auto success = internal_set_prototype_of(&static_cast<WindowObject&>(global_object).ensure_web_prototype<@prototype_class@>("@name@")).release_value(); | ||||
|     VERIFY(success); | ||||
|     set_prototype(&static_cast<WindowObject&>(global_object).ensure_web_prototype<@prototype_class@>("@name@")); | ||||
| } | ||||
| )~~~"); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh