blob: a180a38e427135b3d88b78d1d72047c5e96849b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |reftest| shell-option(--enable-iterator-helpers) skip-if(!this.hasOwnProperty('Iterator')||!xulRuntime.shell) -- iterator-helpers is not enabled unconditionally, requires shell-options
// Copyright (C) 2023 Michael Ficarra. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-iteratorprototype.take
description: >
The value of the [[Prototype]] internal slot of the return value of Iterator.prototype.take is the
intrinsic object %IteratorHelperPrototype%.
features: [iterator-helpers]
---*/
assert((function* () {})().take(0) instanceof Iterator, 'function*(){}().take(0) must return an Iterator');
reportCompare(0, 0);
|