diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-02-26 02:25:21 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-02-26 02:45:02 +0400 |
commit | 51f6e6a9b39c15fcfd34976005fc8496430545e1 (patch) | |
tree | 88e384a7699f11be85ace097f5607fc36f1f45ea /src/node_object_wrap.h | |
parent | 03fe7fb55cd5dad49ffc9ae5d4067ff46bf06c95 (diff) |
src, test: downgrade to v8 3.14 api
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 ee08057a21b..c7fa3eb9ba5 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->GetAlignedPointerFromInternalField(0)); + return static_cast<T*>(handle->GetPointerFromInternalField(0)); } @@ -70,7 +70,7 @@ class NODE_EXTERN ObjectWrap { assert(handle_.IsEmpty()); assert(handle->InternalFieldCount() > 0); handle_ = v8::Persistent<v8::Object>::New(handle); - handle_->SetAlignedPointerInInternalField(0, this); + handle_->SetPointerInInternalField(0, this); MakeWeak(); } |