blob: bae0782d34022d7985af36b68749913763c064e7 [file] [log] [blame]
function mathRoundDoesNotCareAboutMinusZero(value)
{
return Math.round(value);
}
noInline(mathRoundDoesNotCareAboutMinusZero);
for (var i = 0; i < 1e4; ++i) {
var doubleMid = -9901 - 0.6;
var roundedValue = mathRoundDoesNotCareAboutMinusZero(doubleMid);
if (roundedValue !== -9902)
throw "mathRoundDoesNotCareAboutMinusZero(" + doubleMid + ") = " + roundedValue;
}