keith_miller@apple.com | bcc77f2 | 2016-07-15 06:03:25 +0000 | [diff] [blame] | 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-4-191 |
| 6 | description: > |
| 7 | Object.getOwnPropertyDescriptor returns data desc for properties |
| 8 | on built-ins (String.length) |
| 9 | ---*/ |
| 10 | |
| 11 | var desc = Object.getOwnPropertyDescriptor(String, "length"); |
| 12 | |
| 13 | assert.sameValue(desc.writable, false, 'desc.writable'); |
| 14 | assert.sameValue(desc.enumerable, false, 'desc.enumerable'); |
| 15 | assert.sameValue(desc.configurable, true, 'desc.configurable'); |
| 16 | assert.sameValue(desc.hasOwnProperty('get'), false, 'desc.hasOwnProperty("get")'); |
| 17 | assert.sameValue(desc.hasOwnProperty('set'), false, 'desc.hasOwnProperty("set")'); |