Debian Codegraph @

js/src/tests/test262/built-ins/Iterator/from/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 esid: sec-iterator.from
6 description: >
7 The value of the [[Prototype]] internal slot of Iterator.from is the
8 intrinsic object %FunctionPrototype%.
9 features: [iterator-helpers]
10 ---*/
11
12 assert.sameValue(
13 Object.getPrototypeOf(Iterator.from),
14 Function.prototype,
15 'Object.getPrototypeOf(Iterator.from) must return the value of Function.prototype'
16 );
17
18 reportCompare(0, 0);