michael@0: // Binary: cache/js-dbg-32-cf4face65451-linux michael@0: // Flags: -m -n michael@0: // michael@0: function printStatus (msg) { michael@0: var lines = msg.split (""); michael@0: } michael@0: function printBugNumber (num) { michael@0: var digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; michael@0: } michael@0: var lfcode = new Array(); michael@0: lfcode.push("gczeal(4);"); michael@0: lfcode.push("jsTestDriverEnd();"); michael@0: lfcode.push(""); michael@0: lfcode.push("var BUGNUMBER = \"(none)\";\ michael@0: var summary = \"gen.close(); gen.throw(ex) throws ex forever\";\ michael@0: var actual, expect;\ michael@0: printBugNumber(BUGNUMBER);\ michael@0: printStatus(summary);\ michael@0: function gen() {\ michael@0: var x = 5, y = 7;\ michael@0: yield z;\ michael@0: }\ michael@0: var failed = false;\ michael@0: var it = gen();\ michael@0: try {\ michael@0: it.close();\ michael@0: var doThrow = true;\ michael@0: var thrown = \"foobar\";\ michael@0: try { } catch (e) { }\ michael@0: try { } catch (e) { }\ michael@0: throw \"it.throw(\\\"\" + thrown + \"\\\") failed\";\ michael@0: var stopPassed = false;\ michael@0: try { } catch (e) {\ michael@0: if (\"1234\")\ michael@0: stopPassed = true;\ michael@0: }\ michael@0: } catch (e) {}\ michael@0: "); michael@0: var lfRunTypeId = -1; 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: } else { michael@0: switch (lfRunTypeId) { michael@0: default: evaluate(lfVarx); michael@0: } michael@0: } michael@0: } catch (lfVare) { michael@0: print(lfVare); michael@0: } michael@0: }