testBug7618864.js (1255B)
1 function printStatus (msg) { 2 var lines = msg.split (""); 3 } 4 function printBugNumber (num) { 5 var digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; 6 } 7 var lfcode = new Array(); 8 lfcode.push("gczeal(4);"); 9 lfcode.push("jsTestDriverEnd();"); 10 lfcode.push(""); 11 lfcode.push("var BUGNUMBER = \"(none)\";\ 12 var summary = \"gen.close(); gen.throw(ex) throws ex forever\";\ 13 var actual, expect;\ 14 printBugNumber(BUGNUMBER);\ 15 printStatus(summary);\ 16 function gen() {\ 17 var x = 5, y = 7;\ 18 yield z;\ 19 }\ 20 var failed = false;\ 21 var it = gen();\ 22 try {\ 23 it.close();\ 24 var doThrow = true;\ 25 var thrown = \"foobar\";\ 26 try { } catch (e) { }\ 27 try { } catch (e) { }\ 28 throw \"it.throw(\\\"\" + thrown + \"\\\") failed\";\ 29 var stopPassed = false;\ 30 try { } catch (e) {\ 31 if (\"1234\")\ 32 stopPassed = true;\ 33 }\ 34 } catch (e) {}\ 35 "); 36 var lfRunTypeId = -1; 37 while (true) { 38 var file = lfcode.shift(); if (file == undefined) { break; } 39 if (file == "evaluate") { 40 } else { 41 loadFile(file); 42 } 43 } 44 function loadFile(lfVarx) { 45 try { 46 if (lfVarx.substr(-3) == ".js") { 47 } else { 48 switch (lfRunTypeId) { 49 default: evaluate(lfVarx); 50 } 51 } 52 } catch (lfVare) { 53 print(lfVare); 54 } 55 }