Debian Codegraph @

js/src/tests/test262/built-ins/Iterator/proto.js

raw
1 // |reftest| shell-option(--enable-iterator-helpers) skip-if(!this.hasOwnProperty('Iterator')||!xulRuntime.shell) -- iterator-helpers is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2020 Rick Waldron. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-properties-of-the-iterator-constructor
7 description: >
8 The value of the [[Prototype]] internal slot of the Iterator constructor is the
9 intrinsic object %FunctionPrototype%.
10 features: [iterator-helpers]
11 ---*/
12
13 assert.sameValue(
14 Object.getPrototypeOf(Iterator),
15 Function.prototype,
16 'Object.getPrototypeOf(Iterator) must return the value of Function.prototype'
17 );
18
19 reportCompare(0, 0);