summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug646001.js
blob: eabdb12dc47c36710642cab83f7d87469eb6d7c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function jit(on)
{
  if (on && !options().match(/tracejit/)) { }
}
try { test(); } catch (e) {}
function test( 
 ) 
{
  for (var j=0;j<5;++j) { switch(1.1) { case 2: case NaN: } }
  jit(false);
  reportCompare('xxxxxxx'.test(new j('(x+)(x*)')));
}