Debian Codegraph @

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