tor-browser

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

bug808067.js (677B)


      1 function TestCase(n, d, e, a) {
      2  return this.reason = '';
      3 }
      4 function reportCompare (expected, actual, description) {
      5  var output = "";
      6  var testcase = new TestCase("unknown-test-name", description, expected, actual);
      7  testcase.reason = output;
      8 }
      9 gcPreserveCode();
     10 var summary = 'return with argument and lazy generator detection';
     11 expect = "generator function foo returns a value";
     12 actual = (function (j)  {}).message;
     13 reportCompare(expect, actual, summary + ": 1");
     14 reportCompare(expect, actual, summary + ": 2");
     15 gcslice(1);
     16 gcslice(2);
     17 gc();
     18 var strings = [ (0), ];
     19 for (var i = 0; i < strings.length; i++)
     20  reportCompare(expect, actual, summary + (5e1) + strings[i]);