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