15.2.3.7-5-a-17.js (669B)
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-17 6 description: > 7 Object.defineProperties - 'Properties' is the Arguments object 8 which implements its own [[Get]] method to get enumerable own 9 property 10 ---*/ 11 12 var obj = {}; 13 var arg; 14 15 (function fun() { 16 arg = arguments; 17 }()); 18 19 Object.defineProperty(arg, "prop", { 20 value: { 21 value: 17 22 }, 23 enumerable: true 24 }); 25 26 Object.defineProperties(obj, arg); 27 28 assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); 29 assert.sameValue(obj.prop, 17, 'obj.prop'); 30 31 reportCompare(0, 0);