Source code
Revision control
Copy as Markdown
Other Tools
// Copyright (C) 2025 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-iterator.zipkeyed
description: >
The value of the [[Prototype]] internal slot of the return value of Iterator.zipKeyed
is the intrinsic object %IteratorHelperPrototype%.
includes: [wellKnownIntrinsicObjects.js]
features: [joint-iteration]
---*/
var iter = Iterator.zipKeyed({});
assert(iter instanceof Iterator, "Iterator.zipKeyed({}) must return an Iterator");
assert.sameValue(
Object.getPrototypeOf(iter),
getWellKnownIntrinsicObject("%IteratorHelperPrototype%"),
"[[Prototype]] is %IteratorHelperPrototype%"
);
reportCompare(0, 0);