mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	LibWeb: Make factory method of HTML::DOMStringMap fallible
This commit is contained in:
		
							parent
							
								
									809206f50e
								
							
						
					
					
						commit
						b604bbaf29
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-17 01:11:48 +09:00 
				
			
			Author: https://github.com/kennethmyhra
Commit: b604bbaf29
Pull-request: https://github.com/SerenityOS/serenity/pull/17491
Reviewed-by: https://github.com/linusg ✅
			
					 4 changed files with 8 additions and 5 deletions
				
			
		|  | @ -12,10 +12,10 @@ | |||
| 
 | ||||
| namespace Web::HTML { | ||||
| 
 | ||||
| JS::NonnullGCPtr<DOMStringMap> DOMStringMap::create(DOM::Element& element) | ||||
| WebIDL::ExceptionOr<JS::NonnullGCPtr<DOMStringMap>> DOMStringMap::create(DOM::Element& element) | ||||
| { | ||||
|     auto& realm = element.realm(); | ||||
|     return realm.heap().allocate<DOMStringMap>(realm, element).release_allocated_value_but_fixme_should_propagate_errors(); | ||||
|     return MUST_OR_THROW_OOM(realm.heap().allocate<DOMStringMap>(realm, element)); | ||||
| } | ||||
| 
 | ||||
| DOMStringMap::DOMStringMap(DOM::Element& element) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kenneth Myhra
						Kenneth Myhra