1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug945811.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +function toPrinted(value) {} 1.5 +function reportCompare (expected, actual, description) { 1.6 + if (expected != actual) 1.7 + + toPrinted(actual) 1.8 +} 1.9 +test(); 1.10 +function test() { 1.11 + reportCompare(); 1.12 + try { 1.13 + test(); 1.14 + } catch (e) { 1.15 + try { 1.16 + new test(); 1.17 + } catch(e) {} 1.18 + } 1.19 + reportCompare(); 1.20 +}