| 1 |
// Copyright (C) 2016 Jordan Harband. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
description: Object.getOwnPropertyDescriptors should have name property with value 'getOwnPropertyDescriptors' |
| 6 |
esid: sec-object.getownpropertydescriptors |
| 7 |
author: Jordan Harband |
| 8 |
includes: [propertyHelper.js] |
| 9 |
---*/ |
| 10 |
|
| 11 |
assert.sameValue( |
| 12 |
Object.getOwnPropertyDescriptors.name, |
| 13 |
'getOwnPropertyDescriptors', |
| 14 |
'Expected Object.getOwnPropertyDescriptors.name to be "getOwnPropertyDescriptors"' |
| 15 |
); |
| 16 |
|
| 17 |
verifyNotEnumerable(Object.getOwnPropertyDescriptors, 'name'); |
| 18 |
verifyNotWritable(Object.getOwnPropertyDescriptors, 'name'); |
| 19 |
verifyConfigurable(Object.getOwnPropertyDescriptors, 'name'); |