1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug659779.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +// Binary: cache/js-dbg-64-8bcb569c9bf9-linux 1.5 +// Flags: -m -n -a 1.6 +// 1.7 + 1.8 +var gTestcases = new Array; 1.9 +function TestCase(n, d, e, a) { 1.10 + this.description=d 1.11 + gTestcases[gTc++]=this 1.12 +} 1.13 +TestCase.prototype.dump=function () + toPrinted(this.description) 1.14 +function toPrinted(value) value=value; 1.15 +function reportCompare (expected, actual, description) { 1.16 + new TestCase("unknown-test-name", description, expected, actual) 1.17 +} 1.18 +function enterFunc (funcName) { 1.19 + try { 1.20 + expectCompile = 'No Error' 1.21 + var actualCompile; 1.22 + reportCompare(expectCompile, actualCompile, ': compile actual') 1.23 + } catch(ex) {} 1.24 +} 1.25 +gTc=0; 1.26 +function jsTestDriverEnd() { 1.27 + for (var i = 0; i < gTestcases.length; i++) gTestcases[i].dump() 1.28 +} 1.29 +enterFunc(); 1.30 +reportCompare(0, 0, 5.123456); 1.31 +reportCompare(0, 0, this ); 1.32 +jsTestDriverEnd(); 1.33 +try { 1.34 + this.__proto__=[] 1.35 +} catch(ex) {} 1.36 +jsTestDriverEnd()