Debian Codegraph @

js/src/tests/test262/built-ins/Iterator/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 /*---
6 esid: sec-iterator-constructor
7 description: >
8 The "name" property of Iterator
9 info: |
10 17 ECMAScript Standard Built-in Objects
11
12 Every built-in Function object, including constructors, that is not
13 identified as an anonymous function has a name property whose value is a
14 String. Unless otherwise specified, this value is the name that is given to
15 the function in this specification.
16
17 ...
18
19 Unless otherwise specified, the name property of a built-in Function
20 object, if it exists, has the attributes { [[Writable]]: false,
21 [[Enumerable]]: false, [[Configurable]]: true }.
22 features: [iterator-helpers]
23 includes: [propertyHelper.js]
24 ---*/
25
26 verifyProperty(Iterator, 'name', {
27 value: 'Iterator',
28 writable: false,
29 enumerable: false,
30 configurable: true,
31 });
32
33 reportCompare(0, 0);