1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/bug719918.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +function test(m) { 1.5 + do { 1.6 + if (m = arr[0]) break; 1.7 + m = 0; 1.8 + } 1.9 + while (0); 1.10 + arr[1] = m; 1.11 +} 1.12 + 1.13 +arr = new Float64Array(2); 1.14 + 1.15 +// run function a lot to trigger methodjit compile 1.16 +for(var i=0; i<200; i++) 1.17 + test(0); 1.18 + 1.19 +// should return 0, not NaN 1.20 +assertEq(arr[1], 0)