Backed out 2 changesets (bug 1888310, bug 1884625) for causing failures on browser_ap...
[gecko.git] / js / src / tests / test262 / built-ins / Temporal / Duration / length.js
blob0e0748acd0d74909d4053fb4b96140ef8196313b
1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
2 // Copyright (C) 2021 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 esid: sec-temporal.duration
7 description: Temporal.Duration.length is 0
8 info: |
9     Every built-in function object, including constructors, has a "length" property whose value is
10     an integer. Unless otherwise specified, this value is equal to the largest number of named
11     arguments shown in the subclause headings for the function description. Optional parameters
12     (which are indicated with brackets: [ ]) or rest parameters (which are shown using the form
13     «...name») are not included in the default argument count.
15     Unless otherwise specified, the "length" property of a built-in function object has the
16     attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
17 includes: [propertyHelper.js]
18 features: [Temporal]
19 ---*/
21 verifyProperty(Temporal.Duration, "length", {
22   value: 0,
23   writable: false,
24   enumerable: false,
25   configurable: true,
26 });
28 reportCompare(0, 0);