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*)'))); }