1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/bug808067.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +function TestCase(n, d, e, a) 1.5 + this.reason = ''; 1.6 +function reportCompare (expected, actual, description) { 1.7 + var output = ""; 1.8 + var testcase = new TestCase("unknown-test-name", description, expected, actual); 1.9 + testcase.reason = output; 1.10 +} 1.11 +gcPreserveCode(); 1.12 +var summary = 'return with argument and lazy generator detection'; 1.13 +expect = "generator function foo returns a value"; 1.14 +actual = (function (j) {}).message; 1.15 +reportCompare(expect, actual, summary + ": 1"); 1.16 +reportCompare(expect, actual, summary + ": 2"); 1.17 +gcslice(0); 1.18 +gcslice(1); 1.19 +gc(); 1.20 +var strings = [ (0), ]; 1.21 +for (var i = 0; i < strings.length; i++) 1.22 + reportCompare(expect, actual, summary + (5e1) + strings[i]);