diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-01 16:05:53 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-02 12:13:46 +0400 |
commit | 5e57bcc3cee41a666f05e5e4ffd1b76e18b66282 (patch) | |
tree | 40272f5a03eb79530dd5c0210a99d22bdddf1ccd /src/node_object_wrap.h | |
parent | 7b4d95a976f1b76e6dcefb6ca91dff738c80ab7a (diff) | |
download | node-new-5e57bcc3cee41a666f05e5e4ffd1b76e18b66282.tar.gz |
bindings: update to new v8 apis
GetPointerFromInternalField() is deprecated now, we should use
GetAlignedPointerFromInternalField().
Diffstat (limited to 'src/node_object_wrap.h')
-rw-r--r-- | src/node_object_wrap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index 32d584c849..4e0746891e 100644 --- a/src/node_object_wrap.h +++ b/src/node_object_wrap.h @@ -59,7 +59,7 @@ class NODE_EXTERN ObjectWrap { static inline T* Unwrap (v8::Handle<v8::Object> handle) { assert(!handle.IsEmpty()); assert(handle->InternalFieldCount() > 0); - return static_cast<T*>(handle->GetPointerFromInternalField(0)); + return static_cast<T*>(handle->GetAlignedPointerFromInternalField(0)); } @@ -70,7 +70,7 @@ class NODE_EXTERN ObjectWrap { assert(handle_.IsEmpty()); assert(handle->InternalFieldCount() > 0); handle_ = v8::Persistent<v8::Object>::New(handle); - handle_->SetPointerInInternalField(0, this); + handle_->SetAlignedPointerInInternalField(0, this); MakeWeak(); } |