diff --git a/src/internal_only_v8.cc b/src/internal_only_v8.cc index 83b165129cc899..17b0c7aba6e1f0 100644 --- a/src/internal_only_v8.cc +++ b/src/internal_only_v8.cc @@ -32,8 +32,8 @@ class PrototypeChainHas : public v8::QueryObjectPredicate { if (creation_context != context_) { return false; } - for (Local proto = object->GetPrototype(); proto->IsObject(); - proto = proto.As()->GetPrototype()) { + for (Local proto = object->GetPrototypeV2(); proto->IsObject(); + proto = proto.As()->GetPrototypeV2()) { if (search_ == proto) return true; } return false; diff --git a/src/js_native_api_v8.cc b/src/js_native_api_v8.cc index bcb9e5ca8d2926..d2334f65023161 100644 --- a/src/js_native_api_v8.cc +++ b/src/js_native_api_v8.cc @@ -1577,7 +1577,7 @@ napi_status NAPI_CDECL napi_get_prototype(napi_env env, CHECK_TO_OBJECT(env, context, obj, object); // This doesn't invokes Proxy's [[GetPrototypeOf]] handler. - v8::Local val = obj->GetPrototype(); + v8::Local val = obj->GetPrototypeV2(); *result = v8impl::JsValueFromV8LocalValue(val); return GET_RETURN_STATUS(env); } diff --git a/src/node_webstorage.cc b/src/node_webstorage.cc index c6c1c902749bfe..3d71ab33c5b41c 100644 --- a/src/node_webstorage.cc +++ b/src/node_webstorage.cc @@ -530,7 +530,7 @@ template static bool ShouldIntercept(Local property, const PropertyCallbackInfo& info) { Environment* env = Environment::GetCurrent(info); - Local proto = info.This()->GetPrototype(); + Local proto = info.This()->GetPrototypeV2(); if (proto->IsObject()) { bool has_prop;