Invalid flags in a RegExp literal should be an early SyntaxError
[WebKit-https.git] / JSTests / stress / dont-reserve-huge-capacity-lexer.js
1 //@ if ($architecture != "x86-64") or $memoryLimited then skip else runDefault end
2
3 var fe="f";                                                                         
4 try
5 {
6   for (i=0; i<25; i++)                                                   
7     fe += fe;                                                            
8                                                                          
9   var fu=new Function(                                                   
10     fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe,
11     fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe,
12     fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe,
13     fe, fe, fe, fe, fe, fe, fe, fe, fe, fe,                              
14     "done"
15     );
16 } catch(e) {
17 }