js/src/jit-test/tests/auto-regress/bug702003.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:cbda376af1dd
1 // Binary: cache/js-dbg-64-50c1bcb49c76-linux
2 // Flags: -m -n -a
3 //
4
5 var lfcode = new Array();
6 lfcode.push("try { \
7 gczeal(2);\
8 exitFunc ('test');\
9 } catch(exc1) {}\
10 ");
11 lfcode.push("var summary = 'Foo'; \
12 var actual = 'No Crash';\
13 var expect = 'No Crash';\
14 test();\
15 function test() {\
16 try {\
17 eval('(function(){ <x/>.(yield 4) })().next();');\
18 }\ catch(ex) { 'Bar'; }\
19 }\
20 ");
21 while (true) {
22 var code = lfcode.shift();
23 if (code == undefined) { break; }
24 evaluate(code);
25 }

mercurial