diff options
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(); } |