Commit 75d4db72 authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Math.random never produces -0.

R=mvstanton@chromium.org
BUG=v8:5267,v8:5270

Review-Url: https://codereview.chromium.org/2312693002
Cr-Commit-Position: refs/heads/master@{#39162}
parent 7a6fb4d0
......@@ -1295,7 +1295,7 @@ Type* Typer::Visitor::JSCallFunctionTyper(Type* fun, Typer* t) {
if (function->shared()->HasBuiltinFunctionId()) {
switch (function->shared()->builtin_function_id()) {
case kMathRandom:
return Type::OrderedNumber();
return Type::PlainNumber();
case kMathFloor:
case kMathCeil:
case kMathRound:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment