Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Array / prototype / join / length.js
blobf5c31044d1540b09829b87ae1f79e30b4877c7c1
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.join
6 description: >
7   The "length" property of Array.prototype.join
8 info: |
9   17 ECMAScript Standard Built-in Objects
11   Every built-in function object, including constructors, has a length property
12   whose value is an integer. Unless otherwise specified, this value is equal to
13   the largest number of named arguments shown in the subclause headings for the
14   function description. Optional parameters (which are indicated with brackets:
15   [ ]) or rest parameters (which are shown using the form «...name») are not
16   included in the default argument count.
18   Unless otherwise specified, the length property of a built-in function object
19   has the attributes { [[Writable]]: false, [[Enumerable]]: false,
20     [[Configurable]]: true }.
21 includes: [propertyHelper.js]
22 ---*/
24 verifyProperty(Array.prototype.join, "length", {
25   value: 1,
26   writable: false,
27   enumerable: false,
28   configurable: true
29 });
31 reportCompare(0, 0);