Debian Codegraph @

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

raw
1 // Copyright 2015 Microsoft Corporation. All rights reserved.
2 // This code is governed by the license found in the LICENSE file.
3 /*---
4 esid: sec-array.from
5 es6id: 22.1.2.1
6 description: '`name` property'
7 info: |
8 ES6 Section 17:
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. Unless otherwise specified, this value is the name that is given to
13 the function in this specification.
14
15 [...]
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(
24 Array.from.name,
25 'from',
26 'The value of `Array.from.name` is `"from"`'
27 );
28
29 verifyNotEnumerable(Array.from, 'name');
30 verifyNotWritable(Array.from, 'name');
31 verifyConfigurable(Array.from, 'name');