| 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.5-4-313 |
| 6 |
description: > |
| 7 |
Object.create - [[Configurable]] is set as false if it is absent |
| 8 |
in accessor descriptor of one property in 'Properties' (8.12.9 |
| 9 |
step 4.b) |
| 10 |
includes: [propertyHelper.js] |
| 11 |
---*/ |
| 12 |
|
| 13 |
var newObj = Object.create({}, { |
| 14 |
prop: { |
| 15 |
set: function() {}, |
| 16 |
get: function() {}, |
| 17 |
enumerable: true |
| 18 |
} |
| 19 |
}); |
| 20 |
|
| 21 |
assert(newObj.hasOwnProperty("prop")); |
| 22 |
verifyNotConfigurable(newObj, "prop"); |