name.js (791B)
1 // Copyright (c) 2016 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 esid: sec-date-constructor 5 description: Constructor "name" property descriptor 6 info: | 7 17 ECMAScript Standard Built-in Objects: 8 9 Every built-in Function object, including constructors, that is not 10 identified as an anonymous function has a name property whose value is a 11 String. 12 13 Unless otherwise specified, the name property of a built-in Function object, 14 if it exists, has the attributes { [[Writable]]: false, [[Enumerable]]: 15 false, [[Configurable]]: true }. 16 includes: [propertyHelper.js] 17 ---*/ 18 19 verifyProperty(Date, "name", { 20 value: "Date", 21 writable: false, 22 enumerable: false, 23 configurable: true 24 }); 25 26 reportCompare(0, 0);