tor-browser

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

S10.2.1_A3.js (701B)


      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    If the value of this last parameter (which has the same
      7    name as some previous parameters do) was not supplied by the
      8    caller, the value of the corresponding property is undefined
      9 es5id: 10.2.1_A3
     10 description: >
     11    Creating functions with two or more formal parameters,  that have
     12    the same name. Calling this function excluding a few last
     13    parameters
     14 flags: [noStrict]
     15 ---*/
     16 
     17 //CHECK#1
     18 function f1(x, a, b, x){
     19  return x;
     20 }
     21 if(!(f1(1, 2) === undefined)){
     22  throw new Test262Error('#1: f1(1, 2) === undefined');
     23 }
     24 
     25 reportCompare(0, 0);