mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	LibJS: Convert internal_own_property_keys() to ThrowCompletionOr
This commit is contained in:
		
							parent
							
								
									fbfb0bb908
								
							
						
					
					
						commit
						ee8380edea
					
				
					 15 changed files with 56 additions and 92 deletions
				
			
		|  | @ -192,9 +192,10 @@ void CopyObjectExcludingProperties::execute_impl(Bytecode::Interpreter& interpre | |||
|             return; | ||||
|     } | ||||
| 
 | ||||
|     auto own_keys = from_object->internal_own_property_keys(); | ||||
|     if (interpreter.vm().exception()) | ||||
|     auto own_keys_or_error = from_object->internal_own_property_keys(); | ||||
|     if (own_keys_or_error.is_error()) | ||||
|         return; | ||||
|     auto own_keys = own_keys_or_error.release_value(); | ||||
| 
 | ||||
|     for (auto& key : own_keys) { | ||||
|         if (!excluded_names.contains(key)) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh