Debian Codegraph @

js/src/tests/test262/built-ins/Temporal/Instant/from/name.js

raw
1 // |reftest| shell-option(--enable-temporal) skip-if(!this.hasOwnProperty('Temporal')||!xulRuntime.shell) -- Temporal is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2020 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-temporal.instant.from
7 description: Temporal.Instant.from.name is "from"
8 info: |
9 Every built-in function object, including constructors, that is not identified as an anonymous
10 function has a "name" property whose value is a String. Unless otherwise specified, this value
11 is the name that is given to the function in this specification.
12
13 Unless otherwise specified, the "name" property of a built-in function object, if it exists,
14 has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
15 includes: [propertyHelper.js]
16 features: [Temporal]
17 ---*/
18
19 verifyProperty(Temporal.Instant.from, "name", {
20 value: "from",
21 writable: false,
22 enumerable: false,
23 configurable: true,
24 });
25
26 reportCompare(0, 0);