summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/proto.js
blob: 1d26d846c8f3573133b9388e789b6c5416de6b4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2017 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-properties-of-the-array-constructor
description: >
  The prototype of the Array constructor is the intrinsic object %FunctionPrototype%.
info: |
  22.1.2 Properties of the Array Constructor

  The value of the [[Prototype]] internal slot of the Array constructor is the
  intrinsic object %FunctionPrototype%.
---*/

assert.sameValue(
  Object.getPrototypeOf(Array),
  Function.prototype,
  'Object.getPrototypeOf(Array) returns Function.prototype'
);

reportCompare(0, 0);