15.2.3.7-5-a-12.js (546B)
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.7-5-a-12 6 description: > 7 Object.defineProperties - 'Properties' is the Math object which 8 implements its own [[Get]] method to get enumerable own property 9 ---*/ 10 11 var obj = {}; 12 13 Math.prop = { 14 value: 12 15 }; 16 Object.defineProperties(obj, Math); 17 18 assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); 19 assert.sameValue(obj.prop, 12, 'obj.prop'); 20 21 reportCompare(0, 0);