tor-browser

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

apply-args-obj-04.js (285B)


      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 g.apply(this, arguments);
     14    }
     15 }
     16 
     17 f(1, 2);
     18 assertEq(result, 3);
     19 
     20 f("");
     21 assertEq(result, "undefined");