tor-browser

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

slice-args-obj-04.js (327B)


      1 var result;
      2 
      3 function g(a, b) {
      4  with ({}) {}
      5  result = a + b;
      6 }
      7 
      8 function escape() { with({}) {} }
      9 
     10 function f() {
     11  escape(arguments);
     12  for (var i = 0; i < 50; ++i) {
     13    var args = Array.prototype.slice.call(arguments);
     14    g(args[0], args[1]);
     15  }
     16 }
     17 
     18 f(1, 2);
     19 assertEq(result, 3);
     20 
     21 f("");
     22 assertEq(result, "undefined");