Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/BigInt/length.js

raw
1 // Copyright (C) 2017 Robin Templeton. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-bigint-constructor-number-value
6 description: BigInt.length property descriptor
7 info: |
8 BigInt ( value )
9
10 17 ECMAScript Standard Built-in Objects
11
12 Every built-in function object, including constructors, has a length
13 property whose value is an integer. Unless otherwise specified, this
14 value is equal to the largest number of named arguments shown in the
15 subclause headings for the function description. Optional parameters
16 (which are indicated with brackets: [ ]) or rest parameters (which
17 are shown using the form «...name») are not included in the default
18 argument count.
19
20 Unless otherwise specified, the length property of a built-in
21 function object has the attributes { [[Writable]]: false,
22 [[Enumerable]]: false, [[Configurable]]: true }.
23 includes: [propertyHelper.js]
24 features: [BigInt]
25 ---*/
26
27 verifyProperty(BigInt, "length", {
28 value: 1,
29 writable: false,
30 enumerable: false,
31 configurable: true
32 });