mirror of
https://github.com/tc39/test262.git
synced 2025-11-29 01:53:10 +01:00
21 lines
674 B
JavaScript
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%"
|
|
);
|