Debian Codegraph @

js/src/tests/test262/built-ins/Iterator/from/name.js

raw
1 // |reftest| shell-option(--enable-iterator-helpers) skip-if(!this.hasOwnProperty('Iterator')||!xulRuntime.shell) -- iterator-helpers is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2020 Rick Waldron. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-iterator.from
6 description: >
7 The "name" property of Iterator.from
8 info: |
9 17 ECMAScript Standard Built-in Objects
10
11 Every built-in Function object, including constructors, that is not
12 identified as an anonymous function has a name property whose value is a
13 String. Unless otherwise specified, this value is the name that is given to
14 the function in this specification.
15
16 ...
17
18 Unless otherwise specified, the name property of a built-in Function
19 object, if it exists, has the attributes { [[Writable]]: false,
20 [[Enumerable]]: false, [[Configurable]]: true }.
21 features: [iterator-helpers]
22 includes: [propertyHelper.js]
23 ---*/
24
25 verifyProperty(Iterator.from, 'name', {
26 value: 'from',
27 writable: false,
28 enumerable: false,
29 configurable: true,
30 });
31
32 reportCompare(0, 0);