Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Array/length/15.4.5.1-3.d-1.js

raw
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-1
7 description: >
8 Throw RangeError if attempt to set array length property to
9 4294967296 (2**32)
10 ---*/
11
12
13 assert.throws(RangeError, function() {
14 [].length = 4294967296;
15 });