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