15.2.3.3-4-66.js (644B)
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-66 6 description: > 7 Object.getOwnPropertyDescriptor returns data desc for functions on 8 built-ins (String.prototype.indexOf) 9 ---*/ 10 11 var desc = Object.getOwnPropertyDescriptor(String.prototype, "indexOf"); 12 13 assert.sameValue(desc.value, String.prototype.indexOf, 'desc.value'); 14 assert.sameValue(desc.writable, true, 'desc.writable'); 15 assert.sameValue(desc.enumerable, false, 'desc.enumerable'); 16 assert.sameValue(desc.configurable, true, 'desc.configurable'); 17 18 reportCompare(0, 0);