Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 }