S13_A13_T1.js (749B)
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: Deleting arguments[i] leads to breaking the connection to local reference 6 es5id: 13_A13_T1 7 description: Deleting arguments[i] 8 ---*/ 9 10 function __func(__arg){ 11 delete arguments[0]; 12 if (arguments[0] !== undefined) { 13 throw new Test262Error('#1.1: arguments[0] === undefined'); 14 } 15 return __arg; 16 } 17 18 ////////////////////////////////////////////////////////////////////////////// 19 //CHECK#1 20 if (__func(1) !== 1) { 21 throw new Test262Error('#1.2: __func(1) === 1. Actual: __func(1) ==='+__func(1)); 22 } 23 // 24 ////////////////////////////////////////////////////////////////////////////// 25 26 reportCompare(0, 0);