Debian Codegraph @

js/src/tests/test262/built-ins/Iterator/concat/length.js

raw
1 // |reftest| shell-option(--enable-iterator-sequencing) skip-if(!Iterator.concat||!xulRuntime.shell) -- iterator-sequencing is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2024 André Bargull. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-iterator.concat
7 description: >
8 Iterator.concat has a "length" property whose value is 0.
9 info: |
10 ECMAScript Standard Built-in Objects
11
12 Unless otherwise specified, the length property of a built-in
13 Function object has the attributes { [[Writable]]: false, [[Enumerable]]:
14 false, [[Configurable]]: true }.
15 features: [iterator-sequencing]
16 includes: [propertyHelper.js]
17 ---*/
18
19 verifyProperty(Iterator.concat, "length", {
20 value: 0,
21 writable: false,
22 enumerable: false,
23 configurable: true,
24 });
25
26 reportCompare(0, 0);