Index: src/types.h |
diff --git a/src/types.h b/src/types.h |
index 8490cbb2ed1ecb74493d8f9d20cc8bc9f7443af9..1d506d0ca2eba3a2fa898ebde2530f20d5e421ee 100644 |
--- a/src/types.h |
+++ b/src/types.h |
@@ -787,6 +787,7 @@ class TypeImpl<Config>::RangeType : public StructuralType { |
static RangeHandle New( |
i::Handle<i::Object> min, i::Handle<i::Object> max, Region* region) { |
+ DCHECK(IsInteger(min->Number()) && IsInteger(max->Number())); |
DCHECK(min->Number() <= max->Number()); |
RangeHandle type = Config::template cast<RangeType>( |
StructuralType::New(StructuralType::kRangeTag, 3, region)); |