mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	LibJS: Make PrimitiveString::utf8_string() infallible
Work towards #20449.
This commit is contained in:
		
							parent
							
								
									7849950383
								
							
						
					
					
						commit
						c084269e5f
					
				
					 29 changed files with 79 additions and 93 deletions
				
			
		|  | @ -52,7 +52,7 @@ WebIDL::ExceptionOr<String> serialize_javascript_value_to_json_string(JS::VM& vm | |||
|     VERIFY(result.is_string()); | ||||
| 
 | ||||
|     // 4. Return result.
 | ||||
|     return TRY(result.as_string().utf8_string()); | ||||
|     return result.as_string().utf8_string(); | ||||
| } | ||||
| 
 | ||||
| // https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-json-bytes
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling