mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 19:53:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			314 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			314 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // This test passes if it does not crash.
 | |
| 
 | |
| Array.prototype.__defineGetter__(1000, () => 0);
 | |
| 
 | |
| for (let i = 0; i < 0x1000; i++)
 | |
|     new Array(0x10).fill([{}, {}, {}, {}]);
 | |
| 
 | |
| for (let i = 0; i < 0x1000; i++) {
 | |
|     let x = {length: 0x10};
 | |
|     x.__defineGetter__(0, () => gc());
 | |
|     Array.prototype.splice.call(x, 0);
 | |
| }
 |