Index: test/cctest/test-strings.cc |
diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc |
index d4dc51692d988f9ae07b74562afc501d6f1a7ffa..0574c69590a2d8d93dd2050b9cbb45af71894021 100644 |
--- a/test/cctest/test-strings.cc |
+++ b/test/cctest/test-strings.cc |
@@ -1087,7 +1087,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()->ToObjectChecked())->value(), |
+ CHECK_EQ(Handle<Smi>::cast(Object::ToSmi(isolate, results[i]))->value(), |
result->ToInt32()->Value()); |
} |
} |