mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:52:43 +00:00 
			
		
		
		
	 a2efecac03
			
		
	
	
		a2efecac03
		
	
	
	
	
		
			
			Previously we were unable to parse code like `yield/2` because `/2` was parsed as a regex. At the same time `for (a in / b/)` was parsed as a division. This is solved by defaulting to division in the lexer, but calling `force_slash_as_regex()` from the parser whenever an IdentifierName is parsed as a ReservedWord.
		
			
				
	
	
		
			3 lines
		
	
	
	
		
			49 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
	
		
			49 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| export default /foo/;
 | |
| 
 | |
| export let passed = true;
 |