Bug 1147405: Have math_ceil_handle use setNumber rather than setDouble; r=nbp

This commit is contained in:
Benjamin Bouvier 2015-03-26 15:44:55 +01:00
parent 9c983a74fe
commit 9d90deaf90
2 changed files with 3 additions and 4 deletions

View File

@ -419,9 +419,8 @@ var uceFault_ceil_number = eval(uneval(uceFault).replace('uceFault', 'uceFault_c
function rceil_number(i) {
var x = Math.ceil(-i - 0.12010799100);
if (uceFault_ceil_number(i) || uceFault_ceil_number(i))
assertEq(x, - i);
// NYI: uses MMathFunction and not MCeil.
// assertRecoveredOnBailout(x, true);
assertEq(x, -i);
assertRecoveredOnBailout(x, true);
return i;
}

View File

@ -313,7 +313,7 @@ js::math_ceil_handle(JSContext *cx, HandleValue v, MutableHandleValue res)
return false;
double result = math_ceil_impl(d);
res.setDouble(result);
res.setNumber(result);
return true;
}