Index: test/cctest/test-strings.cc |
diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc |
index d8d7c96871a8c63005343844bab68ce608429cb5..8f6a1a24d688a5c035777341a4bad23629faed33 100644 |
--- a/test/cctest/test-strings.cc |
+++ b/test/cctest/test-strings.cc |
@@ -1085,8 +1085,9 @@ TEST(CachedHashOverflow) { |
CHECK_EQ(results[i]->IsUndefined(), result->IsUndefined()); |
CHECK_EQ(results[i]->IsNumber(), result->IsNumber()); |
if (result->IsNumber()) { |
- CHECK_EQ(Object::ToSmi(isolate, results[i]).ToHandleChecked()->value(), |
- result->ToInt32(CcTest::isolate())->Value()); |
+ int32_t value = 0; |
+ CHECK(results[i]->ToInt32(&value)); |
+ CHECK_EQ(value, result->ToInt32(CcTest::isolate())->Value()); |
} |
} |
} |