Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // Binary: cache/js-dbg-64-50c1bcb49c76-linux
2 // Flags: -m -n -a
3 //
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 }