summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Reflect/getPrototypeOf/return-prototype.js
blob: beee511462fd257118bb30c69a375572ea9e93fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 26.1.8
description: >
  Returns the internal [[Prototype]] object.
info: |
  26.1.8 Reflect.getPrototypeOf ( target )

  ...
  2. Return target.[[GetPrototypeOf]]().
features: [Reflect]
---*/

var o = {};
assert.sameValue(
  Reflect.getPrototypeOf(o), Object.prototype,
  'return default prototypes'
);

reportCompare(0, 0);