Debian Codegraph @

js/src/tests/test262/intl402/DurationFormat/length.js

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