Debian Codegraph @

js/src/tests/test262/built-ins/Iterator/prop-desc.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 Property descriptor of Iterator
9 info: |
10 The Iterator Constructor
11
12 * is the initial value of the Iterator property of the global object.
13
14 17 ECMAScript Standard Built-in Objects
15
16 Every other data property described in clauses 18 through 26 and in Annex B.2
17 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
18 [[Configurable]]: true } unless otherwise specified.
19 features: [globalThis, iterator-helpers]
20 includes: [propertyHelper.js]
21 ---*/
22
23 verifyProperty(globalThis, 'Iterator', {
24 value: Iterator,
25 writable: true,
26 enumerable: false,
27 configurable: true,
28 });
29
30 reportCompare(0, 0);