mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:52:44 +00:00 
			
		
		
		
	LibJS: Propagate errors from VM creation
This commit is contained in:
		
							parent
							
								
									eb5aae24f4
								
							
						
					
					
						commit
						13dfadba79
					
				
					 13 changed files with 15 additions and 15 deletions
				
			
		|  | @ -13,7 +13,7 @@ | |||
| #include <LibTest/TestCase.h> | ||||
| 
 | ||||
| #define SETUP_AND_PARSE(source)                                                     \ | ||||
|     auto vm = JS::VM::create();                                                     \ | ||||
|     auto vm = MUST(JS::VM::create());                                               \ | ||||
|     auto ast_interpreter = JS::Interpreter::create<JS::GlobalObject>(*vm);          \ | ||||
|                                                                                     \ | ||||
|     auto script_or_error = JS::Script::parse(source##sv, ast_interpreter->realm()); \ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn