Debian Codegraph @

js/src/tests/test262/built-ins/Iterator/from/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 esid: sec-iterator.from
6 description: >
7 Iterator.from has a "length" property whose value is 1.
8 info: |
9 ECMAScript Standard Built-in Objects
10
11 Unless otherwise specified, the length property of a built-in
12 Function object has the attributes { [[Writable]]: false, [[Enumerable]]:
13 false, [[Configurable]]: true }.
14 features: [iterator-helpers]
15 includes: [propertyHelper.js]
16 ---*/
17
18 verifyProperty(Iterator.from, 'length', {
19 value: 1,
20 writable: false,
21 enumerable: false,
22 configurable: true,
23 });
24
25 reportCompare(0, 0);