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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
// |jit-test| allow-oom; allow-unhandlable-oom
var STATUS = "STATUS: ";
var callStack = new Array();
function startTest() { }
function TestCase(n, d, e, a) {
this.name = n;
}
TestCase.prototype.dump = function () {};
TestCase.prototype.testPassed = (function TestCase_testPassed() { return this.passed; });
TestCase.prototype.testFailed = (function TestCase_testFailed() { return !this.passed; });
function printStatus (msg) {
var lines = msg.split ("\n");
for (var i=0; i<lines.length; i++)
print (STATUS + lines[i]);
}
function printBugNumber (num) {}
function toPrinted(value) {
return function escapeString (str) {};
}
function reportCompare (expected, actual, description) {
var actual_t = typeof actual;
var output = "";
printStatus (
"Expected value '"
+ toPrinted(expected)
+ toPrinted(actual)
);
var testcase = new TestCase("unknown-test-name", description, expected, actual);
testcase.reason = output;
if (typeof document != "object" || !document.location.href.match(/jsreftest.html/)) {
if (testcase.passed) { }
}
return testcase.passed;
}
function reportMatch (expectedRegExp, actual, description) {}
function enterFunc (funcName) {
return function BigO(data) {
function LinearRegression(data) { }
};
}
function compareSource(expect, actual, summary) {}
function optionsInit() {
var optionNames = options().split(',');
}
function optionsClear() {}
function optionsPush() {}
optionsInit();
optionsClear();
function getTestCaseResult(expected, actual) {
return function test() {
for ( gTc=0; gTc < gTestcases.length; gTc++ ) {}
};
}
var lfcode = new Array();
lfcode.push("4");
lfcode.push("gcparam(\"maxBytes\", gcparam(\"gcBytes\") + 1024);");
lfcode.push("");
lfcode.push("\
var UBound = 0;\n\
var BUGNUMBER = 74474;\n\
var actual = '';\n\
var actualvalues = [ ];\n\
var expectedvalues = [ ];\n\
addThis();\n\
addThis();\n\
tryThis(1);\n\
function tryThis(x)\n\
{ return addThis(); }\n\
test();\n\
function addThis() {\n\
actualvalues[UBound] = actual;\n\
UBound++;\n\
}\n\
function test() {\n\
enterFunc ('test');\n\
printBugNumber(BUGNUMBER);\n\
for (var i = 0; i < UBound; i++)\n\
reportCompare(expectedvalues[i], actualvalues[i], getStatus(i));\n\
}\n\
function getStatus(i) {}\n\
");
delete Debugger;
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" && lfVarx.length != 1) {
switch (lfRunTypeId) {
case 3: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break;
case 4: eval("(function() { " + lfVarx + " })();"); break;
}
} else if (!isNaN(lfVarx)) {
lfRunTypeId = parseInt(lfVarx);
switch (lfRunTypeId) {
case 3: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break;
}
}
} catch (lfVare) {
if (lfVare instanceof SyntaxError) { }
}
}
|