tor-browser

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

testMoreArgcThanNargs.js (288B)


      1 function doTestMoreArgcThanNargs()
      2 {
      3    var x = 0;
      4    for (var i = 0; i < 10; i++)
      5    {
      6        x = x + arguments[3];
      7    }
      8    return x;
      9 }
     10 function testMoreArgcThanNargs()
     11 {
     12    return doTestMoreArgcThanNargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
     13 }
     14 assertEq(testMoreArgcThanNargs(), 4*10);