15.2.3.3-3-15.js (506B)
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-15 6 description: > 7 Object.getOwnPropertyDescriptor applied to a Function object which 8 implements its own property get method 9 ---*/ 10 11 var obj = function(a, b) { 12 return a + b; 13 }; 14 obj[1] = "ownProperty"; 15 16 var desc = Object.getOwnPropertyDescriptor(obj, "1"); 17 18 assert.sameValue(desc.value, "ownProperty", 'desc.value'); 19 20 reportCompare(0, 0);