Debian Codegraph @

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

raw
1 // Copyright (C) 2015 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-date.utc
6 es6id: 20.3.3.4
7 description: >
8 Date.UTC.name is "UTC".
9 info: |
10 Date.UTC ( year, month [ , date [ , hours [ , minutes [ , seconds [ , ms ] ] ] ] ] )
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 includes: [propertyHelper.js]
21 ---*/
22
23 assert.sameValue(Date.UTC.name, "UTC");
24
25 verifyNotEnumerable(Date.UTC, "name");
26 verifyNotWritable(Date.UTC, "name");
27 verifyConfigurable(Date.UTC, "name");