Index: src/base/safe_conversions_impl.h |
diff --git a/src/base/safe_conversions_impl.h b/src/base/safe_conversions_impl.h |
index 2226f17aebd1a2a2367d99e1178cb7bcd4efd668..0a9ed9b71978eb55690bb403029988a603958db3 100644 |
--- a/src/base/safe_conversions_impl.h |
+++ b/src/base/safe_conversions_impl.h |
@@ -10,6 +10,7 @@ |
#include <limits> |
+#include "src/base/logging.h" |
#include "src/base/macros.h" |
namespace v8 { |
@@ -98,9 +99,8 @@ enum RangeConstraint { |
// Helper function for coercing an int back to a RangeContraint. |
inline RangeConstraint GetRangeConstraint(int integer_range_constraint) { |
- // TODO(jochen/jkummerow): Re-enable this when checks.h is available in base. |
- // ASSERT(integer_range_constraint >= RANGE_VALID && |
- // integer_range_constraint <= RANGE_INVALID); |
+ ASSERT(integer_range_constraint >= RANGE_VALID && |
+ integer_range_constraint <= RANGE_INVALID); |
return static_cast<RangeConstraint>(integer_range_constraint); |
} |