15.2.3.7-6-a-22.js (620B)
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-6-a-22 6 description: > 7 Object.defineProperties - 'O' is the Arguments object which 8 implements its own [[GetOwnProperty]] method to get 'P' (8.12.9 9 step 1 ) 10 ---*/ 11 12 var arg = function() { 13 return arguments; 14 }(); 15 16 Object.defineProperty(arg, "prop", { 17 value: 11, 18 configurable: false 19 }); 20 assert.throws(TypeError, function() { 21 Object.defineProperties(arg, { 22 prop: { 23 value: 12, 24 configurable: true 25 } 26 }); 27 }); 28 29 reportCompare(0, 0);