tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S13_A13_T2.js (796B)


      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_T2
      7 description: Changing arguments value and then deleting the argument
      8 ---*/
      9 
     10 function __func(__arg){
     11  __arg = 2;
     12  delete arguments[0];
     13  if (arguments[0] !== undefined) {
     14    throw new Test262Error('#1.1: arguments[0] === undefined');
     15  }
     16  return __arg;
     17 }
     18 
     19 //////////////////////////////////////////////////////////////////////////////
     20 //CHECK#1
     21 if (__func(1) !== 2) {
     22 throw new Test262Error('#1.2: __func(1) === 2. Actual: __func(1) ==='+__func(1));
     23 }
     24 //
     25 //////////////////////////////////////////////////////////////////////////////
     26 
     27 reportCompare(0, 0);