Debian Codegraph @

js/src/tests/test262/built-ins/Iterator/length.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 Iterator has a "length" property whose value is 0.
9 info: |
10 The Iterator Constructor
11
12 The length property of the Iterator constructor function is 0.
13 ...
14
15 ES7 section 17: Unless otherwise specified, the length property of a built-in
16 Function object has the attributes { [[Writable]]: false, [[Enumerable]]:
17 false, [[Configurable]]: true }.
18 features: [iterator-helpers]
19 includes: [propertyHelper.js]
20 ---*/
21
22 verifyProperty(Iterator, 'length', {
23 value: 0,
24 writable: false,
25 enumerable: false,
26 configurable: true,
27 });
28
29 reportCompare(0, 0);