Index: test/cctest/test-strings.cc |
diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc |
index 3a9e4da24a22b6c1d153682746f47862ec15d2e5..3f02b32b8c43331889f72ee4f95941c17b611bf1 100644 |
--- a/test/cctest/test-strings.cc |
+++ b/test/cctest/test-strings.cc |
@@ -476,7 +476,7 @@ TEST(CachedHashOverflow) { |
CHECK_EQ(results[i]->IsUndefined(), result->IsUndefined()); |
CHECK_EQ(results[i]->IsNumber(), result->IsNumber()); |
if (result->IsNumber()) { |
- CHECK_EQ(Smi::cast(results[i]->ToSmi())->value(), |
+ CHECK_EQ(Smi::cast(results[i]->ToSmi()->ToObjectChecked())->value(), |
result->ToInt32()->Value()); |
} |
} |