Index: src/compiler/type-hint-analyzer.cc |
diff --git a/src/compiler/type-hint-analyzer.cc b/src/compiler/type-hint-analyzer.cc |
index da4f2683a301fc94b87f5fe5a02aaecb6bfe6eb2..89d674bae80e1bc3ec95aad26e1da23bbd856ceb 100644 |
--- a/src/compiler/type-hint-analyzer.cc |
+++ b/src/compiler/type-hint-analyzer.cc |
@@ -20,7 +20,7 @@ BinaryOperationHints::Hint ToHint(Type* type) { |
if (type->Is(Type::None())) return BinaryOperationHints::kNone; |
if (type->Is(Type::SignedSmall())) return BinaryOperationHints::kSignedSmall; |
if (type->Is(Type::Signed32())) return BinaryOperationHints::kSigned32; |
- if (type->Is(Type::Number())) return BinaryOperationHints::kNumber; |
+ if (type->Is(Type::Number())) return BinaryOperationHints::kNumberOrUndefined; |
if (type->Is(Type::String())) return BinaryOperationHints::kString; |
return BinaryOperationHints::kAny; |
} |