Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Array / prototype / at / length.js
blob219f329eb464cf2b617b0dc38b41270d2a60cb30
1 // Copyright (C) 2020 Rick Waldron. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-array.prototype.at
5 description: >
6   Array.prototype.at.length value and descriptor.
7 info: |
8   Array.prototype.at( index )
10   17 ECMAScript Standard Built-in Objects
12 includes: [propertyHelper.js]
13 features: [Array.prototype.at]
14 ---*/
15 assert.sameValue(
16   typeof Array.prototype.at,
17   'function',
18   'The value of `typeof Array.prototype.at` is expected to be "function"'
21 assert.sameValue(
22   Array.prototype.at.length, 1,
23   'The value of Array.prototype.at.length is expected to be 1'
26 verifyNotEnumerable(Array.prototype.at, 'length');
27 verifyNotWritable(Array.prototype.at, 'length');
28 verifyConfigurable(Array.prototype.at, 'length');
30 reportCompare(0, 0);