summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/flat/length.js
blob: 0978244cc026d22d9fa38ad3aa70ade2224374d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2018 Shilpi Jain and Michael Ficarra. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.flat
description: Array.prototype.flat.length value and descriptor.
info: >
  17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [Array.prototype.flat]
---*/

assert.sameValue(
  Array.prototype.flat.length, 0,
  'The value of `Array.prototype.flat.length` is `0`'
);

verifyProperty(Array.prototype.flat, 'length', {
  enumerable: false,
  writable: false,
  configurable: true,
});

reportCompare(0, 0);