Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 003500dc5e8086e738a5ed375751cc2c99bb169f..39c30336ea755b86a1c9a25fccbba19d76adb284 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13886,7 +13886,7 @@ MaybeHandle<Object> JSObject::SetPrototype(Handle<JSObject> object, |
const bool observed = from_javascript && object->map()->is_observed(); |
Handle<Object> old_value; |
if (observed) { |
- old_value = Object::GetPrototypeSkipHiddenPrototypes(isolate, object); |
+ old_value = Object::GetPrototype(isolate, object); |
} |
Handle<Object> result; |
@@ -13895,8 +13895,7 @@ MaybeHandle<Object> JSObject::SetPrototype(Handle<JSObject> object, |
Object); |
if (observed) { |
- Handle<Object> new_value = |
- Object::GetPrototypeSkipHiddenPrototypes(isolate, object); |
+ Handle<Object> new_value = Object::GetPrototype(isolate, object); |
if (!new_value->SameValue(*old_value)) { |
RETURN_ON_EXCEPTION(isolate, |
JSObject::EnqueueChangeRecord( |