| 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.3-3-13 |
| 6 |
description: > |
| 7 |
Object.getOwnPropertyDescriptor applied to the Arguments object |
| 8 |
which implements its own property get method |
| 9 |
---*/ |
| 10 |
|
| 11 |
var arg = (function() { |
| 12 |
return arguments; |
| 13 |
}("ownProperty", true)); |
| 14 |
|
| 15 |
var desc = Object.getOwnPropertyDescriptor(arg, "0"); |
| 16 |
|
| 17 |
assert.sameValue(desc.value, "ownProperty", 'desc.value'); |
| 18 |
assert.sameValue(desc.writable, true, 'desc.writable'); |
| 19 |
assert.sameValue(desc.enumerable, true, 'desc.enumerable'); |
| 20 |
assert.sameValue(desc.configurable, true, 'desc.configurable'); |