15.4.5.1-3.d-2.js (470B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-properties-of-array-instances-length 6 es5id: 15.4.5.1-3.d-2 7 description: > 8 Throw RangeError if attempt to set array length property to 9 4294967297 (1+2**32) 10 ---*/ 11 12 13 assert.throws(RangeError, function() { 14 [].length = 4294967297; 15 }, '[].length = 4294967297 throws a RangeError exception'); 16 17 reportCompare(0, 0);