Index: test/cctest/test-object-observe.cc |
diff --git a/test/cctest/test-object-observe.cc b/test/cctest/test-object-observe.cc |
index 5164b87df7517c034c182d860e2fe8272a2c372d..f17b8c081e29d21d545ca16211ed0d32812e43ce 100644 |
--- a/test/cctest/test-object-observe.cc |
+++ b/test/cctest/test-object-observe.cc |
@@ -491,16 +491,17 @@ TEST(ObservationWeakMap) { |
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::Object::GetProperty( |
- i_isolate, observation_state, "callbackInfoMap").ToHandleChecked()); |
- i::Handle<i::JSWeakMap> objectInfoMap = |
- 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::Object::GetProperty( |
- i_isolate, observation_state, "notifierObjectInfoMap") |
- .ToHandleChecked()); |
+ i::Handle<i::JSWeakMap> callbackInfoMap = i::Handle<i::JSWeakMap>::cast( |
+ i::JSReceiver::GetProperty(i_isolate, observation_state, |
+ "callbackInfoMap") |
+ .ToHandleChecked()); |
+ i::Handle<i::JSWeakMap> objectInfoMap = i::Handle<i::JSWeakMap>::cast( |
+ i::JSReceiver::GetProperty(i_isolate, observation_state, "objectInfoMap") |
+ .ToHandleChecked()); |
+ i::Handle<i::JSWeakMap> notifierObjectInfoMap = i::Handle<i::JSWeakMap>::cast( |
+ i::JSReceiver::GetProperty(i_isolate, observation_state, |
+ "notifierObjectInfoMap") |
+ .ToHandleChecked()); |
CHECK_EQ(1, NumberOfElements(callbackInfoMap)); |
CHECK_EQ(1, NumberOfElements(objectInfoMap)); |
CHECK_EQ(1, NumberOfElements(notifierObjectInfoMap)); |