diff --git a/src/base_object-inl.h b/src/base_object-inl.h index 11ba1c88da0486..786e1f26b48256 100644 --- a/src/base_object-inl.h +++ b/src/base_object-inl.h @@ -31,12 +31,12 @@ namespace node { -BaseObject::BaseObject(Environment* env, v8::Local handle) - : persistent_handle_(env->isolate(), handle), +BaseObject::BaseObject(Environment* env, v8::Local object) + : persistent_handle_(env->isolate(), object), env_(env) { - CHECK_EQ(false, handle.IsEmpty()); - CHECK_GT(handle->InternalFieldCount(), 0); - handle->SetAlignedPointerInInternalField(0, static_cast(this)); + CHECK_EQ(false, object.IsEmpty()); + CHECK_GT(object->InternalFieldCount(), 0); + object->SetAlignedPointerInInternalField(0, static_cast(this)); } diff --git a/src/base_object.h b/src/base_object.h index 7d8281238b1c1d..2a4967c1aaf303 100644 --- a/src/base_object.h +++ b/src/base_object.h @@ -34,9 +34,9 @@ class Environment; class BaseObject { public: - // Associates this object with `handle`. It uses the 0th internal field for + // Associates this object with `object`. It uses the 0th internal field for // that, and in particular aborts if there is no such field. - inline BaseObject(Environment* env, v8::Local handle); + inline BaseObject(Environment* env, v8::Local object); virtual inline ~BaseObject(); // Returns the wrapped object. Returns an empty handle when