Index: test/cctest/test-object-observe.cc |
diff --git a/test/cctest/test-object-observe.cc b/test/cctest/test-object-observe.cc |
index 188d222191df1ea3a7b31eb25b13d9fc6905cc4b..a8cbaf6ea75a49902e63bd75607fdc8860c62ca2 100644 |
--- a/test/cctest/test-object-observe.cc |
+++ b/test/cctest/test-object-observe.cc |
@@ -407,20 +407,19 @@ TEST(ObservationWeakMap) { |
"Object.observe(obj, function(){});" |
"Object.getNotifier(obj);" |
"obj = null;"); |
- i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(CcTest::isolate()); |
+ i::Isolate* i_isolate = CcTest::i_isolate(); |
i::Handle<i::JSObject> observation_state = |
i_isolate->factory()->observation_state(); |
i::Handle<i::JSWeakMap> callbackInfoMap = |
- i::Handle<i::JSWeakMap>::cast( |
- i::GetProperty( |
- observation_state, "callbackInfoMap").ToHandleChecked()); |
+ i::Handle<i::JSWeakMap>::cast(i::Object::GetProperty( |
+ i_isolate, observation_state, "callbackInfoMap").ToHandleChecked()); |
i::Handle<i::JSWeakMap> objectInfoMap = |
- i::Handle<i::JSWeakMap>::cast( |
- i::GetProperty(observation_state, "objectInfoMap").ToHandleChecked()); |
+ i::Handle<i::JSWeakMap>::cast(i::Object::GetProperty( |
+ i_isolate, observation_state, "objectInfoMap").ToHandleChecked()); |
i::Handle<i::JSWeakMap> notifierObjectInfoMap = |
- i::Handle<i::JSWeakMap>::cast( |
- i::GetProperty( |
- observation_state, "notifierObjectInfoMap").ToHandleChecked()); |
+ i::Handle<i::JSWeakMap>::cast(i::Object::GetProperty( |
+ i_isolate, observation_state, "notifierObjectInfoMap") |
+ .ToHandleChecked()); |
CHECK_EQ(1, NumberOfElements(callbackInfoMap)); |
CHECK_EQ(1, NumberOfElements(objectInfoMap)); |
CHECK_EQ(1, NumberOfElements(notifierObjectInfoMap)); |