1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/bug646001.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +function jit(on) 1.5 +{ 1.6 + if (on && !options().match(/tracejit/)) { } 1.7 +} 1.8 +try { test(); } catch (e) {} 1.9 +function test( 1.10 + ) 1.11 +{ 1.12 + for (var j=0;j<5;++j) { switch(1.1) { case 2: case NaN: } } 1.13 + jit(false); 1.14 + reportCompare('xxxxxxx'.test(new j('(x+)(x*)'))); 1.15 +}