1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/recompile/bug658212.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +var gTestcases = Array; 1.5 +function TestCase(n, d, e, a) { 1.6 + this.description = d 1.7 + gTestcases[gTc] = this 1.8 +} 1.9 +TestCase.prototype.dump=function () + + + 1.10 + + this.description + + 1.11 + + + '\n';function printStatus (msg) 1.12 +function toPrinted(value) { 1.13 +} 1.14 +function reportCompare(expected, actual, description) { 1.15 + new TestCase("unknown-test-name", description, expected, actual) 1.16 +} 1.17 +gTc = 0;; 1.18 +function jsTestDriverEnd() { 1.19 + for (var i = 0; i < gTestcases.length; i++) 1.20 + gTestcases[i].dump() 1.21 +} 1.22 +var summary = 'Do not assert with try/finally inside finally'; 1.23 +var expect = 'No Crash'; 1.24 +reportCompare(expect, printStatus, summary); 1.25 +jsTestDriverEnd(); 1.26 +jsTestDriverEnd(); 1.27 +try { 1.28 + f 1.29 +} catch (ex) { 1.30 + actual = '' 1.31 +} 1.32 +reportCompare(expect, actual, 5); 1.33 +jsTestDriverEnd()