tor-browser

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

t006.js (251B)


      1 actual = '';
      2 expected = '2,';
      3 
      4 function k(f_arg) { 
      5  (function() {
      6    for (var i = 0; i < 10; ++i) {
      7      f_arg();
      8    }
      9  })();
     10 }
     11 
     12 function t() {
     13  var x = 1;
     14  k(function () { x = 2; });
     15  appendToActual(x);
     16 }
     17 
     18 t();
     19 
     20 
     21 
     22 assertEq(actual, expected)