result-is-iterator.js (696B)
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.zipkeyed 6 description: > 7 The value of the [[Prototype]] internal slot of the return value of Iterator.zipKeyed 8 is the intrinsic object %IteratorHelperPrototype%. 9 includes: [wellKnownIntrinsicObjects.js] 10 features: [joint-iteration] 11 ---*/ 12 13 var iter = Iterator.zipKeyed({}); 14 assert(iter instanceof Iterator, "Iterator.zipKeyed({}) must return an Iterator"); 15 16 assert.sameValue( 17 Object.getPrototypeOf(iter), 18 getWellKnownIntrinsicObject("%IteratorHelperPrototype%"), 19 "[[Prototype]] is %IteratorHelperPrototype%" 20 ); 21 22 reportCompare(0, 0);