Debian Codegraph @

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

raw
1 // Copyright (C) 2017 Leo Balter. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-properties-of-the-array-constructor
6 description: >
7 The prototype of the Array constructor is the intrinsic object %FunctionPrototype%.
8 info: |
9 22.1.2 Properties of the Array Constructor
10
11 The value of the [[Prototype]] internal slot of the Array constructor is the
12 intrinsic object %FunctionPrototype%.
13 ---*/
14
15 assert.sameValue(
16 Object.getPrototypeOf(Array),
17 Function.prototype,
18 'Object.getPrototypeOf(Array) returns Function.prototype'
19 );
20
21 reportCompare(0, 0);