mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			199 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			199 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
describe("parsing new expressions with optional chaining", () => {
 | 
						|
    expect("new Object()?.foo").toEval();
 | 
						|
    expect("new Object?.foo").not.toEval();
 | 
						|
    expect("(new Object)?.foo").toEval();
 | 
						|
});
 |