michael@0: // Binary: cache/js-dbg-64-e8de64e7e9fe-linux michael@0: // Flags: --ion-eager michael@0: // michael@0: function printStatus (msg) {} michael@0: function printBugNumber (num) {} michael@0: function reportCompare (expected, actual, description) { michael@0: printStatus ("Expected value '" + toPrinted(expected) + "' matched actual value '" + toPrinted(actual) + "'"); michael@0: } michael@0: try { michael@0: reportCompare(expectCompile, actualCompile, summary + ': compile actual'); michael@0: } catch(ex) { } michael@0: var lfcode = new Array(); michael@0: lfcode.push("\ michael@0: var bar = {\ michael@0: b: 2,\ michael@0: };\ michael@0: var results = [];\ michael@0: for each (let [key, value] in Iterator(bar))\ michael@0: results.push(key + \":\" + (results(isXMLName(), \"ok\")));\ michael@0: var expect = \"a:1;b:2\";\ michael@0: "); michael@0: lfcode.push("\ michael@0: var BUGNUMBER = 244619;\ michael@0: var summary = 'Don\\'t Crash';\ michael@0: var actual = 'Crash';\ michael@0: function f1()\ michael@0: eval.call((enterFunc ('test')), \"var a = 'vodka'\");\ michael@0: gczeal(4);\ michael@0: reportCompare(expect, actual, summary);\ michael@0: "); 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: switch (lfRunTypeId) { } michael@0: } else { michael@0: evaluate(lfVarx); michael@0: } michael@0: } catch (lfVare) { michael@0: } michael@0: }