| 1 |
// Copyright (c) 2012 Ecma International. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es5id: 15.2.3.7-6-a-24 |
| 6 |
description: > |
| 7 |
Object.defineProperties - 'O' is the global object which |
| 8 |
implements its own [[GetOwnProperty]] method to get 'P' (8.12.9 |
| 9 |
step 1 ) |
| 10 |
includes: [propertyHelper.js] |
| 11 |
---*/ |
| 12 |
|
| 13 |
|
| 14 |
Object.defineProperty(this, "prop", { |
| 15 |
value: 11, |
| 16 |
writable: true, |
| 17 |
enumerable: true, |
| 18 |
configurable: true |
| 19 |
}); |
| 20 |
|
| 21 |
Object.defineProperties(this, { |
| 22 |
prop: { |
| 23 |
value: 12 |
| 24 |
} |
| 25 |
}); |
| 26 |
|
| 27 |
verifyEqualTo(this, "prop", 12); |
| 28 |
|
| 29 |
verifyWritable(this, "prop"); |
| 30 |
|
| 31 |
verifyEnumerable(this, "prop"); |
| 32 |
|
| 33 |
verifyConfigurable(this, "prop"); |
| 34 |
|
| 35 |
delete this.prop; |