Index: src/compiler/verifier.cc |
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc |
index 0f678735e903971b1c6ebd179a1e4e8efbfb3d01..418a277ee843f5c2bdb0b556b80428abaad369fe 100644 |
--- a/src/compiler/verifier.cc |
+++ b/src/compiler/verifier.cc |
@@ -570,8 +570,7 @@ void Verifier::Visitor::Check(Node* node) { |
CheckTypeIs(node, Type::OrderedNumber()); |
break; |
case IrOpcode::kJSToLength: |
- // Type is OrderedNumber. |
- CheckTypeIs(node, Type::OrderedNumber()); |
+ CheckTypeIs(node, Type::Range(0, kMaxSafeInteger, zone)); |
break; |
case IrOpcode::kJSToName: |
// Type is Name. |