rem: try { expect = exp(45); f(45) } catch (e) { writeLineToLog('tried f(44), caught ' + e) } 
add: try { expect = exp(45); f(45) } catch (e) { print('tried f(44), caught ' + e) } 
context: function test(){  enterFunc ('test');  printBugNumber (bug);  printStatus (summary);  var pfx  = "(function (x) {try {if (x > 41) throw x}",    cg1a = " catch (e if e === 42) {var v = 'catch guard 1 ' + e; actual += v + ',';writeLineToLog(v);}"    cg1b = " catch (e if e === 42) {var v = 'catch guard 1 + throw ' + e; actual += v + ',';writeLineToLog(v); throw e;}"    cg2  = " catch (e if e === 43) {var v = 'catch guard 2 ' + e; actual += v + ',';writeLineToLog(v)}"    cat  = " catch (e) {var v = 'catch all ' + e; writeLineToLog(v); if (e == 44) throw e}"    fin  = " finally{var v = 'fin'; actual += v + ',';writeLineToLog(v)}",    end  = "})";  var exphash  = {    pfx: "(function (y) { var result = ''; y = y + ',';",    cg1a: " result += (y === '42,') ? ('catch guard 1 ' + y):'';",    cg1b: " result += (y === '42,') ? ('catch guard 1 + throw ' + y):'';",    cg2:  " result += (y === '43,') ? ('catch guard 2 ' + y):'';",    cat:  " result += (y > 41) ? ('catch all ' + y):'';",    fin:  " result += 'fin,';",    end:  "return result;})"  };  var src = [    pfx + fin + end,    pfx + cat + end,    pfx + cat + fin + end,    pfx + cg1a + end,    pfx + cg1a + fin + end,    pfx + cg1a + cat + end,    pfx + cg1a + cat + fin + end,    pfx + cg1a + cg2 + end,    pfx + cg1a + cg2 + fin + end,    pfx + cg1a + cg2 + cat + end,    pfx + cg1a + cg2 + cat + fin + end,    pfx + cg1b + end,    pfx + cg1b + fin + end,    pfx + cg1b + cat + end,    pfx + cg1b + cat + fin + end,    pfx + cg1b + cg2 + end,    pfx + cg1b + cg2 + fin + end,    pfx + cg1b + cg2 + cat + end,    pfx + cg1b + cg2 + cat + fin + end,    ];  var expsrc = [    exphash.pfx + exphash.fin + exphash.end,    exphash.pfx + exphash.cat + exphash.end,    exphash.pfx + exphash.cat + exphash.fin + exphash.end,    exphash.pfx + exphash.cg1a + exphash.end,    exphash.pfx + exphash.cg1a + exphash.fin + exphash.end,    exphash.pfx + exphash.cg1a + exphash.cat + exphash.end,    exphash.pfx + exphash.cg1a + exphash.cat + exphash.fin + exphash.end,    exphash.pfx + exphash.cg1a + exphash.cg2 + exphash.end,    exphash.pfx + exphash.cg1a + exphash.cg2 + exphash.fin + exphash.end,    exphash.pfx + exphash.cg1a + exphash.cg2 + exphash.cat + exphash.end,    exphash.pfx + exphash.cg1a + exphash.cg2 + exphash.cat + exphash.fin + exphash.end,    exphash.pfx + exphash.cg1b + exphash.end,    exphash.pfx + exphash.cg1b + exphash.fin + exphash.end,    exphash.pfx + exphash.cg1b + exphash.cat + exphash.end,    exphash.pfx + exphash.cg1b + exphash.cat + exphash.fin + exphash.end,    exphash.pfx + exphash.cg1b + exphash.cg2 + exphash.end,    exphash.pfx + exphash.cg1b + exphash.cg2 + exphash.fin + exphash.end,    exphash.pfx + exphash.cg1b + exphash.cg2 + exphash.cat + exphash.end,    exphash.pfx + exphash.cg1b + exphash.cg2 + exphash.cat + exphash.fin + exphash.end,    ];  for (var i in src) {    writeLineToLog("\n=== " + i + ": " + src[i]);    var f = eval(src[i]);    var exp = eval(expsrc[i]);    // dis(f);    writeLineToLog('decompiling: ' + f);    //writeLineToLog('decompiling exp: ' + exp);    actual = '';    try { expect = exp(41); f(41) } catch (e) { writeLineToLog('tried f(41), caught ' + e) }    reportCompare(expect, actual, summary);    actual = '';    try { expect = exp(42); f(42) } catch (e) { writeLineToLog('tried f(42), caught ' + e) }    reportCompare(expect, actual, summary);    actual = '';    try { expect = exp(43); f(43) } catch (e) { writeLineToLog('tried f(43), caught ' + e) }    reportCompare(expect, actual, summary);    actual = '';    try { expect = exp(44); f(44) } catch (e) { writeLineToLog('tried f(44), caught ' + e) }    reportCompare(expect, actual, summary);    actual = '';    try { expect = exp(45); f(45) } catch (e) { writeLineToLog('tried f(44), caught ' + e) }    reportCompare(expect, actual, summary);  }  exitFunc ('test');}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f577de167a7d5c2c46bde55f8215c4317b1d256f/regress-350312-03.js/buggy/js/tests/js1_5/Regress/regress-350312-03.js