name.js (989B)
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. 4 5 /*--- 6 esid: sec-temporal.duration 7 description: Temporal.Duration.name is "Duration" 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.Duration, "name", { 20 value: "Duration", 21 writable: false, 22 enumerable: false, 23 configurable: true, 24 }); 25 26 reportCompare(0, 0);