Debian Codegraph @

js/src/tests/test262/built-ins/Iterator/concat/non-constructible.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 is not constructible.
9
10 Built-in function objects that are not identified as constructors do not
11 implement the [[Construct]] internal method unless otherwise specified in the
12 description of a particular function.
13 features: [iterator-sequencing]
14 ---*/
15
16 assert.throws(TypeError, () => {
17 new Iterator.concat();
18 });
19
20 reportCompare(0, 0);