tor-browser

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

bug746376.js (1836B)


      1 // Binary: cache/js-dbg-64-67bf9a4a1f77-linux
      2 // Flags: --ion-eager
      3 //
      4 var callStack = new Array();
      5 var gTestcases = new Array();
      6 var gTc = gTestcases.length;
      7 function TestCase(n, d, e, a) {
      8  this.expect = e;
      9  this.actual = a;
     10  this.passed = getTestCaseResult(e, a);
     11  this.reason = '';
     12  this.bugnumber = typeof(BUGNUMER) != 'undefined' ? BUGNUMBER : '';
     13  this.type = (typeof window == 'undefined' ? 'shell' : 'browser');
     14  gTestcases[gTc++] = this;
     15 }
     16 function reportCompare (expected, actual, description) {
     17  var output = "";
     18  if (typeof description == "undefined")
     19  if (expected != actual)
     20    printStatus ("Expected value '" + toPrinted(expected) +
     21                 "' matched actual value '" + toPrinted(actual) + "'");
     22  var testcase = new TestCase("unknown-test-name", description, expected, actual);
     23  testcase.reason = output;
     24    if (testcase.passed)     {    }
     25  return testcase.passed;
     26 }
     27 function enterFunc (funcName) {
     28  var lastFunc = callStack.pop();
     29      reportCompare(funcName, lastFunc, "Test driver failure wrong exit function ");
     30 }
     31 function getTestCaseResult(expected, actual) {}
     32 var lfcode = new Array();
     33 lfcode.push("\
     34 var summary = 'decompilation of \"let with with\" ';\
     35 var actual = '';\
     36 var expect = '';\
     37 test();\
     38 function test() {\
     39  enterFunc ('test');\
     40  gczeal(2);\
     41  for (let q = 0; q < 50; ++q) {\
     42    new Function('for (var i = 0; i < 5; ++i) { } ')();\
     43    var w = 'r'.match(/r/);\
     44    new Function('for (var j = 0; j < 1; ++j) { } ')();\
     45  }\
     46  reportCompare(expect, actual, summary);\
     47 }\
     48 ");
     49 delete Debugger;
     50 while (true) {
     51 var file = lfcode.shift(); if (file == undefined) { break; }
     52 if (file == "evaluate") {
     53 } else {
     54                loadFile(file);
     55 }
     56 }
     57 function loadFile(lfVarx) {
     58 try {
     59 	if (lfVarx.substr(-3) == ".js") {
     60 	} else {
     61 		evaluate(lfVarx);
     62 	}
     63 } catch (lfVare) {
     64 }
     65 }