mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 03:34:08 +01:00 
			
		
		
		
	* Automated assertion message update: Array.from * Automated assertion message update: Array.isArray * Automated assertion message update: Array length property * Automated assertion message update: Array.of * Automated assertion message update: Array * Automated assertion message update: Array.prototype.at * Automated assertion message update: Array.prototype.concat * Automated assertion message update: compareArray -> assert.compareArray
		
			
				
	
	
		
			15 lines
		
	
	
		
			410 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			410 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (c) 2012 Ecma International.  All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| es5id: 15.4.5.1-5-2
 | |
| description: >
 | |
|     Defining a property named 4294967295 (2**32-1) doesn't change
 | |
|     length of the array
 | |
| ---*/
 | |
| 
 | |
| var a = [0, 1, 2];
 | |
| a[4294967295] = "not an array element";
 | |
| 
 | |
| assert.sameValue(a.length, 3, 'The value of a.length is expected to be 3');
 |