Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Array / prototype / push / length.js
blob4df58993dd43039b43b4c0578fa2cf649c07a842
1 // Copyright (C) 2017 Leo Balter. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-array.prototype.push
6 description: >
7   The "length" property of Array.prototype.push
8 info: |
9   22.1.3.18 Array.prototype.push ( ...items )
11   The length property of the push method is 1.
13   17 ECMAScript Standard Built-in Objects
15   Every built-in function object, including constructors, has a length property
16   whose value is an integer. Unless otherwise specified, this value is equal to
17   the largest number of named arguments shown in the subclause headings for the
18   function description. Optional parameters (which are indicated with brackets:
19   [ ]) or rest parameters (which are shown using the form «...name») are not
20   included in the default argument count.
22   Unless otherwise specified, the length property of a built-in function object
23   has the attributes { [[Writable]]: false, [[Enumerable]]: false,
24     [[Configurable]]: true }.
25 includes: [propertyHelper.js]
26 ---*/
28 verifyProperty(Array.prototype.push, "length", {
29   value: 1,
30   writable: false,
31   enumerable: false,
32   configurable: true
33 });
35 reportCompare(0, 0);