michael@0: // Binary: cache/js-dbg-32-4bcbb63b89c3-linux michael@0: // Flags: --ion-eager michael@0: // michael@0: var summary = ''; michael@0: function reportFailure (msg) {} michael@0: function toPrinted(value) { michael@0: value = value.replace(/\n/g, 'NL') michael@0: } michael@0: function reportCompare (expected, actual, description) { michael@0: var output = ""; michael@0: output += "Expected value '" + toPrinted(expected) + michael@0: "', Actual value '" + toPrinted(actual) + "' "; michael@0: reportFailure (description + " : " + output); michael@0: } michael@0: var lfcode = new Array(); michael@0: lfcode.push("\ michael@0: expect = actual = 'No Exception';\ michael@0: reportCompare(expect, actual, summary);\ michael@0: "); michael@0: lfcode.push("\ michael@0: function reportFailure (section, msg)\ michael@0: msg = inSection(section)+\"\"+msg;\ michael@0: "); michael@0: lfcode.push("\ michael@0: try {\ michael@0: for (var i in expect) \ michael@0: reportCompare(expect[i], actual[i], getStatus(i));\ michael@0: } catch(exc1) {}\ michael@0: function getStatus(i) {}\ michael@0: "); michael@0: lfcode.push("gczeal(2,(9));"); michael@0: lfcode.push("evaluate(\"reportCompare(expect, actual, summary);\");"); michael@0: gcPreserveCode() michael@0: while (true) { michael@0: var file = lfcode.shift(); if (file == undefined) { break; } michael@0: if (file == "evaluate") { michael@0: } else { michael@0: loadFile(file); michael@0: } michael@0: } michael@0: function loadFile(lfVarx) { michael@0: try { michael@0: if (lfVarx.substr(-3) != ".js") { michael@0: evaluate(lfVarx); michael@0: } michael@0: } catch (lfVare) {} michael@0: }