mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02:45 +00:00 
			
		
		
		
	LibJS: Convert Object::get() to ThrowCompletionOr
To no one's surprise, this patch is pretty big - this is possibly the most used AO of all of them. Definitely worth it though.
This commit is contained in:
		
							parent
							
								
									9b6c09e2c4
								
							
						
					
					
						commit
						b7e5f08e56
					
				
					 61 changed files with 326 additions and 686 deletions
				
			
		|  | @ -35,7 +35,7 @@ GUI::Variant SheetModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) | |||
|                 if (value.is_object()) { | ||||
|                     auto& object = value.as_object(); | ||||
|                     if (is<JS::Error>(object)) { | ||||
|                         auto error = object.get("message").to_string_without_side_effects(); | ||||
|                         auto error = object.get_without_side_effects("message").to_string_without_side_effects(); | ||||
|                         builder.append(error); | ||||
|                         return builder.to_string(); | ||||
|                     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh