mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:12:45 +00:00 
			
		
		
		
	 faddf3a1db
			
		
	
	
		faddf3a1db
		
	
	
	
	
		
			
			You can now throw an expression to the nearest catcher! :^) To support throwing arbitrary values, I added an Exception class that sits as a wrapper around whatever is thrown. In the future it will be a logical place to store a call stack.
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			57 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			57 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| try {
 | |
|     throw 123;
 | |
| } catch (e) {
 | |
|     console.log(e);
 | |
| }
 |