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