Debian Codegraph @

js/src/tests/test262/built-ins/Object/getOwnPropertyDescriptor/length.js

raw
1 // Copyright (C) 2020 Alexey Shvayka. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-object.getownpropertydescriptor
6 description: >
7 Object.getOwnPropertyDescriptor.length is 2.
8 info: |
9 Object.getOwnPropertyDescriptor ( O, P )
10
11 ECMAScript Standard Built-in Objects
12
13 Every built-in function object, including constructors, has a "length" property whose
14 value is an integer. Unless otherwise specified, this value is equal to the largest
15 number of named arguments shown in the subclause headings for the function description.
16
17 Unless otherwise specified, the "length" property of a built-in function object has
18 the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
19 includes: [propertyHelper.js]
20 ---*/
21
22 verifyProperty(Object.getOwnPropertyDescriptor, "length", {
23 value: 2,
24 writable: false,
25 enumerable: false,
26 configurable: true,
27 });
28
29 reportCompare(0, 0);