diff options
Diffstat (limited to 'src/base_object-inl.h')
-rw-r--r-- | src/base_object-inl.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/base_object-inl.h b/src/base_object-inl.h index 06a2922397..d067a807cb 100644 --- a/src/base_object-inl.h +++ b/src/base_object-inl.h @@ -61,11 +61,11 @@ Persistent<v8::Object>& BaseObject::persistent() { } -v8::Local<v8::Object> BaseObject::object() { +v8::Local<v8::Object> BaseObject::object() const { return PersistentToLocal(env_->isolate(), persistent_handle_); } -v8::Local<v8::Object> BaseObject::object(v8::Isolate* isolate) { +v8::Local<v8::Object> BaseObject::object(v8::Isolate* isolate) const { v8::Local<v8::Object> handle = object(); #ifdef DEBUG CHECK_EQ(handle->CreationContext()->GetIsolate(), isolate); @@ -91,12 +91,6 @@ T* BaseObject::FromJSObject(v8::Local<v8::Object> object) { } -void BaseObject::DeleteMe(void* data) { - BaseObject* self = static_cast<BaseObject*>(data); - delete self; -} - - void BaseObject::MakeWeak() { persistent_handle_.SetWeak( this, |