mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 11:44:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			188 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			188 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| //@ requireOptions("--jitPolicyScale=0")
 | |
| 
 | |
| function foo(x) {
 | |
|     try {
 | |
|         new x();
 | |
|     } catch {
 | |
|     }
 | |
| }
 | |
| 
 | |
| foo(function() {});
 | |
| for (let i = 0; i < 10000; ++i)
 | |
|     foo(() => undefined);
 |