| 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-2-10 |
| 6 |
description: Object.defineProperties - argument 'Properties' is an Array object |
| 7 |
---*/ |
| 8 |
|
| 9 |
var obj = {}; |
| 10 |
var props = []; |
| 11 |
var result = false; |
| 12 |
|
| 13 |
Object.defineProperty(props, "prop", { |
| 14 |
get: function() { |
| 15 |
result = this instanceof Array; |
| 16 |
return {}; |
| 17 |
}, |
| 18 |
enumerable: true |
| 19 |
}); |
| 20 |
|
| 21 |
Object.defineProperties(obj, props); |
| 22 |
|
| 23 |
assert(result, 'result !== true'); |