tor-browser

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

S10.6_A1.js (655B)


      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    When control enters an execution context for function code,
      7    an arguments object is created and initialised
      8 es5id: 10.6_A1
      9 description: Executing function which uses arguments object
     10 ---*/
     11 
     12 //CHECK#1
     13 function f1(){
     14  return arguments;
     15 }
     16 
     17 try{
     18  var x = f1();
     19 }
     20 catch(e){
     21  throw new Test262Error("#1: arguments doesn't exists");
     22 }
     23 
     24 //CHECK#2
     25 var f2 = function(){
     26  return arguments;
     27 }
     28 
     29 try{
     30  var x = f2();
     31 }
     32 catch(e){
     33  throw new Test262Error("#2: arguments doesn't exists");
     34 }
     35 
     36 reportCompare(0, 0);