michael@0: function jit(on) michael@0: { michael@0: if (on && !options().match(/tracejit/)) { } michael@0: } michael@0: try { test(); } catch (e) {} michael@0: function test( michael@0: ) michael@0: { michael@0: for (var j=0;j<5;++j) { switch(1.1) { case 2: case NaN: } } michael@0: jit(false); michael@0: reportCompare('xxxxxxx'.test(new j('(x+)(x*)'))); michael@0: }