non-constructible.js (526B)
1 // Copyright (C) 2025 André Bargull. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-iterator.zip 6 description: > 7 Iterator.zip is not constructible. 8 9 Built-in function objects that are not identified as constructors do not 10 implement the [[Construct]] internal method unless otherwise specified in the 11 description of a particular function. 12 features: [joint-iteration] 13 ---*/ 14 15 assert.throws(TypeError, () => { 16 new Iterator.zip([]); 17 }); 18 19 reportCompare(0, 0);