Index: test/cctest/test-hashing.cc |
diff --git a/test/cctest/test-hashing.cc b/test/cctest/test-hashing.cc |
index 66ee04158ff455ed3380778d44876da0ad3d82fb..9a7d61ddd88a58415dcdb467cdf167102269a35e 100644 |
--- a/test/cctest/test-hashing.cc |
+++ b/test/cctest/test-hashing.cc |
@@ -203,7 +203,8 @@ void check(i::Vector<const uint8_t> string) { |
CHECK(code->IsCode()); |
HASH_FUNCTION hash = FUNCTION_CAST<HASH_FUNCTION>(code->entry()); |
- Handle<String> v8_string = factory->NewStringFromOneByte(string); |
+ Handle<String> v8_string = |
+ factory->NewStringFromOneByte(string).ToHandleChecked(); |
v8_string->set_hash_field(String::kEmptyHashField); |
#ifdef USE_SIMULATOR |
uint32_t codegen_hash = static_cast<uint32_t>( |