Index: test/cctest/test-object-observe.cc |
diff --git a/test/cctest/test-object-observe.cc b/test/cctest/test-object-observe.cc |
index 6bde5b37e12d29c7132d36b1bbde473f4b97ae15..188d222191df1ea3a7b31eb25b13d9fc6905cc4b 100644 |
--- a/test/cctest/test-object-observe.cc |
+++ b/test/cctest/test-object-observe.cc |
@@ -412,13 +412,15 @@ TEST(ObservationWeakMap) { |
i_isolate->factory()->observation_state(); |
i::Handle<i::JSWeakMap> callbackInfoMap = |
i::Handle<i::JSWeakMap>::cast( |
- i::GetProperty(observation_state, "callbackInfoMap")); |
+ i::GetProperty( |
+ observation_state, "callbackInfoMap").ToHandleChecked()); |
i::Handle<i::JSWeakMap> objectInfoMap = |
i::Handle<i::JSWeakMap>::cast( |
- i::GetProperty(observation_state, "objectInfoMap")); |
+ i::GetProperty(observation_state, "objectInfoMap").ToHandleChecked()); |
i::Handle<i::JSWeakMap> notifierObjectInfoMap = |
i::Handle<i::JSWeakMap>::cast( |
- i::GetProperty(observation_state, "notifierObjectInfoMap")); |
+ i::GetProperty( |
+ observation_state, "notifierObjectInfoMap").ToHandleChecked()); |
CHECK_EQ(1, NumberOfElements(callbackInfoMap)); |
CHECK_EQ(1, NumberOfElements(objectInfoMap)); |
CHECK_EQ(1, NumberOfElements(notifierObjectInfoMap)); |