10.6-12-2.js (719B)
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: 10.6-12-2 6 description: arguments.callee has correct attributes 7 flags: [noStrict] 8 ---*/ 9 10 function testcase() { 11 var desc = Object.getOwnPropertyDescriptor(arguments,"callee"); 12 13 assert.sameValue(desc.configurable, true, 'desc.configurable'); 14 assert.sameValue(desc.enumerable, false, 'desc.enumerable'); 15 assert.sameValue(desc.writable, true, 'desc.writable'); 16 assert.sameValue(desc.hasOwnProperty('get'), false, 'desc.hasOwnProperty("get")'); 17 assert.sameValue(desc.hasOwnProperty('set'), false, 'desc.hasOwnProperty("set")'); 18 } 19 testcase(); 20 21 reportCompare(0, 0);