summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug763989.js
blob: 042df9f8683c6d5c718d5bbd2cd1ebdf78c5f5cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Binary: cache/js-dbg-32-4bcbb63b89c3-linux
// Flags: --ion-eager
//
var summary = '';
function reportFailure (msg) {}
function toPrinted(value) {
  value = value.replace(/\n/g, 'NL')
}
function reportCompare (expected, actual, description) {
  var output = "";
  output += "Expected value '" + toPrinted(expected) +
      "', Actual value '" + toPrinted(actual) + "' ";
      reportFailure (description + " : " + output);
}
var lfcode = new Array();
lfcode.push("\
  expect = actual = 'No Exception';\
  reportCompare(expect, actual, summary);\
");
lfcode.push("\
function reportFailure (section, msg)\
  msg = inSection(section)+\"\"+msg;\
");
lfcode.push("\
try {\
  for (var i in expect) \
    reportCompare(expect[i], actual[i], getStatus(i));\
} catch(exc1) {}\
function getStatus(i) {}\
");
lfcode.push("gczeal(2,(9));");
lfcode.push("evaluate(\"reportCompare(expect, actual, summary);\");");
	gcPreserveCode()
while (true) {
	var file = lfcode.shift(); if (file == undefined) { break; }
	if (file == "evaluate") {
	} else {
                loadFile(file);
	}
}
function loadFile(lfVarx) {
	try {
		if (lfVarx.substr(-3) != ".js") {
			evaluate(lfVarx);
		}
	} catch (lfVare) {}
}