| 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-5-a-15 |
| 6 |
description: > |
| 7 |
Object.defineProperties - 'Properties' is the JSON object which |
| 8 |
implements its own [[Get]] method to get enumerable own property |
| 9 |
---*/ |
| 10 |
|
| 11 |
var obj = {}; |
| 12 |
|
| 13 |
JSON.prop = { |
| 14 |
value: 15 |
| 15 |
}; |
| 16 |
Object.defineProperties(obj, JSON); |
| 17 |
|
| 18 |
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); |
| 19 |
assert.sameValue(obj.prop, 15, 'obj.prop'); |