tor-browser

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

args2d.js (268B)


      1 actual = '';
      2 expected = 'g 0 0 0,g 1 2 1,g 2 4 4,g 3 6 9,g 4 8 16,';
      3 
      4 function g(x, y, z) {
      5  appendToActual('g ' + x + ' ' + y + ' ' + z);
      6 }
      7 
      8 function f() {
      9  g.apply(this, arguments);
     10 }
     11 
     12 for (var i = 0; i < 5; ++i) {
     13  f(i, i*2, i*i);
     14 }
     15 
     16 
     17 assertEq(actual, expected)