mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			233 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			233 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
//@ requireOptions("--jitPolicyScale=0")
 | 
						|
 | 
						|
// This test should not crash.
 | 
						|
 | 
						|
function test(array) {
 | 
						|
    return array.push(0, 0.1);
 | 
						|
}
 | 
						|
 | 
						|
for (var i = 0; i < 100000; ++i) {
 | 
						|
    test([])
 | 
						|
}
 | 
						|
 | 
						|
for (var i = 0; i < 100000; ++i) {
 | 
						|
    test([0])
 | 
						|
}
 |