Debian Codegraph @

js/src/tests/test262/intl402/DurationFormat/name.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.name is "DurationFormat".
9 info: |
10 Intl.DurationFormat ([ locales [ , options ]])
11
12 17 ECMAScript Standard Built-in Objects:
13 Every built-in Function object, including constructors, that is not
14 identified as an anonymous function has a name property whose value
15 is a String.
16
17 Unless otherwise specified, the name property of a built-in Function
18 object, if it exists, has the attributes { [[Writable]]: false,
19 [[Enumerable]]: false, [[Configurable]]: true }.
20
21 features: [Intl.DurationFormat]
22 includes: [propertyHelper.js]
23 ---*/
24
25 verifyProperty(Intl.DurationFormat, 'name', {
26 value: 'DurationFormat',
27 enumerable: false,
28 writable: false,
29 configurable: true
30 });
31
32 reportCompare(0, 0);