summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Proxy/getPrototypeOf/trap-is-undefined.js
blob: 21cf51daf62db8919421ca780c2c9a5e2dfa17a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 9.5.1
description: >
    Return target.[[GetPrototypeOf]]() if trap is undefined.
features: [Proxy]
---*/

var target = Object.create(Array.prototype);
var p = new Proxy(target, {});

assert.sameValue(Object.getPrototypeOf(p), Array.prototype);

reportCompare(0, 0);