michael@0: function test(m) { michael@0: do { michael@0: if (m = arr[0]) break; michael@0: m = 0; michael@0: } michael@0: while (0); michael@0: arr[1] = m; michael@0: } michael@0: michael@0: arr = new Float64Array(2); michael@0: michael@0: // run function a lot to trigger methodjit compile michael@0: for(var i=0; i<200; i++) michael@0: test(0); michael@0: michael@0: // should return 0, not NaN michael@0: assertEq(arr[1], 0)