mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-27 01:33:59 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			221 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			221 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // This shouldn't crash when running with ASAN.
 | |
| let arr = [];
 | |
| for (var i = 0; i < 1000000; i++)
 | |
|     arr[i] = [];
 | |
| 
 | |
| arr.indexOf(new Object(), {
 | |
|     valueOf: function () {
 | |
|         arr.length = 0;
 | |
|         return 0;
 | |
|     }
 | |
| });
 |