Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Date/name.js

raw
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 es6id: 20.3.2
6 description: Constructor "name" property descriptor
7 info: |
8 17 ECMAScript Standard Built-in Objects:
9
10 Every built-in Function object, including constructors, that is not
11 identified as an anonymous function has a name property whose value is a
12 String.
13
14 Unless otherwise specified, the name property of a built-in Function object,
15 if it exists, has the attributes { [[Writable]]: false, [[Enumerable]]:
16 false, [[Configurable]]: true }.
17 includes: [propertyHelper.js]
18 ---*/
19
20 assert.sameValue(Date.name, "Date");
21
22 verifyNotEnumerable(Date, "name");
23 verifyNotWritable(Date, "name");
24 verifyConfigurable(Date, "name");