S13_A11_T3.js (844B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: | 6 Since arguments property has attribute { DontDelete }, only its elements 7 can be deleted 8 es5id: 13_A11_T3 9 description: Deleting arguments[i] and returning result of the operation 10 ---*/ 11 12 function __func(){ 13 var was_del=false; 14 for (var i=0; i < arguments.length; i++) 15 was_del= was_del || delete arguments[i]; 16 return was_del; 17 } 18 19 ////////////////////////////////////////////////////////////////////////////// 20 //CHECK#1 21 if (!__func("A","B",1,2)) { 22 throw new Test262Error('#1: Since arguments property has attribute { DontDelete } elements of arguments can be deleted'); 23 } 24 // 25 ////////////////////////////////////////////////////////////////////////////// 26 27 reportCompare(0, 0);