tor-browser

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

bug595706.js (308B)


      1 function f(useArg2, arg2, expect) {
      2    var args = arguments;
      3    if (useArg2)
      4 args = arg2;
      5 
      6    print(args)
      7    assertEq(args.length, expect);
      8 }
      9 
     10 // Generate a PIC for arguments.
     11 f(false, 0, 3);
     12 f(false, 0, 3);
     13 f(false, 0, 3);
     14 
     15 // Now call it with a slow array.
     16 var a = [1, 2, 3];
     17 a.x = 9;
     18 
     19 f(true, a, 3);