1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug771157.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +// Binary: cache/js-dbg-64-9cf3ea112635-linux 1.5 +// Flags: --ion-eager 1.6 +// 1.7 + 1.8 +var callStack = new Array(); 1.9 +function TestCase(n, d, e, a) { 1.10 + this.expect = e; 1.11 + this.actual = a; 1.12 + this.passed = getTestCaseResult(e, a); 1.13 + dump(+ this.path + ' ' + 'reason: ' + toPrinted(this.reason)+ '\n'); 1.14 +}; 1.15 +function reportCompare (expected, actual, description) { 1.16 + var testcase = new TestCase("unknown-test-name", description, expected, actual); 1.17 +} 1.18 +function enterFunc (funcName) { 1.19 + callStack.push(funcName); 1.20 + var lastFunc = callStack.pop(); 1.21 + reportCompare(funcName, lastFunc, "Test driver failure wrong exit function "); 1.22 +} 1.23 +try { 1.24 +var summary = 'String static methods'; 1.25 +var actual = ''; 1.26 +expect = '2'; 1.27 +reportCompare(expect, actual, summary + " String.toUpperCase(new Boolean(true))"); 1.28 +} catch(exc0) {} 1.29 +try { 1.30 +function TestCase(n, d, e, a) {} 1.31 +enterFunc ('test'); 1.32 +reportCompare(expect, actual, summary); 1.33 +} catch(exc2) {}