tor-browser

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

bug763039.js (1733B)


      1 // Binary: cache/js-dbg-32-5cfb73435e06-linux
      2 // Flags: --ion-eager
      3 //
      4 var actual = '';
      5 function TestCase(n, d, e, a) {
      6  this.reason = '';
      7 }
      8 function inSection(x) {}
      9 function reportCompare (expected, actual, description) {
     10  var testcase = new TestCase("unknown-test-name", description, expected, actual);
     11  testcase.reason = output;
     12 }
     13 var lfcode = new Array();
     14 lfcode.push("4");
     15 lfcode.push("function START(summary) {\
     16 }\
     17 function TEST(section, expected, actual) {\
     18    return reportCompare(expected, actual, inSection(section) + SUMMARY);\
     19 }\
     20 var expect = (1);\
     21 TEST(1,1 << this <  assertEq++ < this, actual);\
     22 ");
     23 lfcode.push("\
     24 gczeal(4);\
     25 data >>>=  RunSingleBenchmark(data);\
     26 ");
     27 lfcode.push("4");
     28 lfcode.push("\
     29 var BUGNUMBER = 345855;\
     30 var summary = 'Blank yield expressions are not syntax errors';\
     31 test();\
     32 function test() {\
     33  try  {\
     34    eval('(function() {x = 12 + yield;})');\
     35  }  catch(ex)  {}\
     36  try  { eval('(function() {x = 12 + yield 42})'); }  catch(ex)  {\
     37    status = inSection(4);\
     38  }\
     39  try  {\
     40    eval('(function() {x = 12 + (yield);})');\
     41  }  catch(ex)  {  }\
     42  try  {\
     43    eval('(function () {foo((yield))})');\
     44  }  catch(ex)  {  }\
     45  try  {\
     46    eval('(function() {x = 12 + (yield 42)})');\
     47  }  catch(ex)  {  }\
     48  reportCompare(expect, actual, summary + ': function() {x = 12 + (yield 42)}');\
     49 }\
     50 ");
     51 while (true) {
     52 var file = lfcode.shift(); if (file == undefined) { break; }
     53                loadFile(file);
     54 }
     55 function loadFile(lfVarx) {
     56 try {
     57 	if (lfVarx.substr(-3) == ".js") {
     58 	} else if (!isNaN(lfVarx)) {
     59 		lfRunTypeId = lfVarx;
     60 	} else {
     61 		switch (lfRunTypeId) {
     62 			case 1: eval(read(lfVarx)); break;
     63 			default: evaluate(lfVarx);
     64 		}
     65 	}
     66 } catch (lfVare) {
     67 	print(lfVare);
     68 }
     69 }