1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug761864.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,58 @@ 1.4 +// Binary: cache/js-dbg-32-cf4face65451-linux 1.5 +// Flags: -m -n 1.6 +// 1.7 +function printStatus (msg) { 1.8 + var lines = msg.split (""); 1.9 +} 1.10 +function printBugNumber (num) { 1.11 + var digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; 1.12 +} 1.13 +var lfcode = new Array(); 1.14 +lfcode.push("gczeal(4);"); 1.15 +lfcode.push("jsTestDriverEnd();"); 1.16 +lfcode.push(""); 1.17 +lfcode.push("var BUGNUMBER = \"(none)\";\ 1.18 +var summary = \"gen.close(); gen.throw(ex) throws ex forever\";\ 1.19 +var actual, expect;\ 1.20 +printBugNumber(BUGNUMBER);\ 1.21 +printStatus(summary);\ 1.22 +function gen() {\ 1.23 + var x = 5, y = 7;\ 1.24 + yield z;\ 1.25 +}\ 1.26 +var failed = false;\ 1.27 +var it = gen();\ 1.28 +try {\ 1.29 + it.close();\ 1.30 + var doThrow = true;\ 1.31 + var thrown = \"foobar\";\ 1.32 + try { } catch (e) { }\ 1.33 + try { } catch (e) { }\ 1.34 + throw \"it.throw(\\\"\" + thrown + \"\\\") failed\";\ 1.35 + var stopPassed = false;\ 1.36 + try { } catch (e) {\ 1.37 + if (\"1234\")\ 1.38 + stopPassed = true;\ 1.39 + }\ 1.40 +} catch (e) {}\ 1.41 +"); 1.42 +var lfRunTypeId = -1; 1.43 +while (true) { 1.44 + var file = lfcode.shift(); if (file == undefined) { break; } 1.45 + if (file == "evaluate") { 1.46 + } else { 1.47 + loadFile(file); 1.48 + } 1.49 +} 1.50 +function loadFile(lfVarx) { 1.51 + try { 1.52 + if (lfVarx.substr(-3) == ".js") { 1.53 + } else { 1.54 + switch (lfRunTypeId) { 1.55 + default: evaluate(lfVarx); 1.56 + } 1.57 + } 1.58 + } catch (lfVare) { 1.59 + print(lfVare); 1.60 + } 1.61 +}