tor-browser

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

S13_A15_T3.js (1225B)


      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: "''arguments'' variable overrides ActivationObject.arguments"
      6 es5id: 13_A15_T3
      7 description: Declaring a variable named with "arguments" without a function
      8 flags: [noStrict]
      9 ---*/
     10 
     11 THE_ANSWER="Answer to Life, the Universe, and Everything";
     12 
     13 var arguments = THE_ANSWER;
     14 
     15 function __func(arguments){
     16    return arguments;
     17    
     18 };
     19 
     20 //////////////////////////////////////////////////////////////////////////////
     21 //CHECK#1
     22 if (typeof __func() !== "undefined") {
     23 throw new Test262Error('#1: typeof __func() === "undefined". Actual: typeof __func() ==='+typeof __func());
     24 }
     25 //
     26 //////////////////////////////////////////////////////////////////////////////
     27 
     28 //////////////////////////////////////////////////////////////////////////////
     29 //CHECK#2
     30 if (__func("The Ultimate Question") !== "The Ultimate Question") {
     31 throw new Test262Error('#2: __func("The Ultimate Question") === "The Ultimate Question". Actual: __func("The Ultimate Question")==='+__func("The Ultimate Question"));
     32 }
     33 //
     34 //////////////////////////////////////////////////////////////////////////////
     35 
     36 reportCompare(0, 0);