Debian Codegraph @

js/src/tests/test262/intl402/DurationFormat/prop-desc.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 "DurationFormat" property of Intl.
9 info: |
10 Intl.DurationFormat ([ locales [ , options ]])
11
12 7 Requirements for Standard Built-in ECMAScript Objects
13
14 Unless specified otherwise in this document, the objects, functions, and constructors
15 described in this standard are subject to the generic requirements and restrictions
16 specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
17 Specification, 9th edition, clause 17, or successor.
18
19 17 ECMAScript Standard Built-in Objects:
20
21 Every other data property described in clauses 18 through 26 and in Annex B.2 has the
22 attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
23 unless otherwise specified.
24
25 features: [Intl.DurationFormat]
26 includes: [propertyHelper.js]
27 ---*/
28
29 verifyProperty(Intl, 'DurationFormat', {
30 enumerable: false,
31 writable: true,
32 configurable: true
33 });
34
35 reportCompare(0, 0);