Bug 1895153 - Implement "Find in page..." menu functionality r=android-reviewers...
[gecko.git] / js / src / tests / test262 / built-ins / BigInt / length.js
blob47a4d07d073cf44af0cfe0255988901a5aa9ce96
1 // Copyright (C) 2017 Robin Templeton. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-bigint-constructor-number-value
6 description: BigInt.length property descriptor
7 info: |
8   BigInt ( value )
10   17 ECMAScript Standard Built-in Objects
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.
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 ---*/
27 verifyProperty(BigInt, "length", {
28   value: 1,
29   writable: false,
30   enumerable: false,
31   configurable: true
32 });
34 reportCompare(0, 0);