test262/test/built-ins/Iterator/zipKeyed/result-is-iterator.js
2025-11-25 13:06:50 -08:00

21 lines
674 B
JavaScript

// 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%"
);