1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug702003.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +// Binary: cache/js-dbg-64-50c1bcb49c76-linux 1.5 +// Flags: -m -n -a 1.6 +// 1.7 + 1.8 +var lfcode = new Array(); 1.9 +lfcode.push("try { \ 1.10 + gczeal(2);\ 1.11 + exitFunc ('test');\ 1.12 + } catch(exc1) {}\ 1.13 +"); 1.14 +lfcode.push("var summary = 'Foo'; \ 1.15 + var actual = 'No Crash';\ 1.16 + var expect = 'No Crash';\ 1.17 + test();\ 1.18 + function test() {\ 1.19 + try {\ 1.20 + eval('(function(){ <x/>.(yield 4) })().next();');\ 1.21 + }\ catch(ex) { 'Bar'; }\ 1.22 + }\ 1.23 +"); 1.24 +while (true) { 1.25 + var code = lfcode.shift(); 1.26 + if (code == undefined) { break; } 1.27 + evaluate(code); 1.28 +}