| 1 |
// Copyright (C) 2015 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
/*--- |
| 4 |
es6id: 9.5.5 |
| 5 |
description: > |
| 6 |
Return target.[[GetOwnProperty]](P) if trap is undefined. |
| 7 |
info: | |
| 8 |
[[GetOwnProperty]] (P) |
| 9 |
|
| 10 |
... |
| 11 |
8. If trap is undefined, then |
| 12 |
a. Return target.[[GetOwnProperty]](P). |
| 13 |
... |
| 14 |
includes: [propertyHelper.js] |
| 15 |
---*/ |
| 16 |
|
| 17 |
var target = { |
| 18 |
attr: 1 |
| 19 |
}; |
| 20 |
var p = new Proxy(target, {}); |
| 21 |
|
| 22 |
var proxyDesc = Object.getOwnPropertyDescriptor(p, "attr"); |
| 23 |
|
| 24 |
verifyEqualTo(p, "attr", 1); |
| 25 |
verifyWritable(p, "attr"); |
| 26 |
verifyEnumerable(p, "attr"); |
| 27 |
verifyConfigurable(p, "attr"); |