summaryrefslogtreecommitdiff
path: root/src/node_object_wrap.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-02-25 23:25:21 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-02-25 23:45:02 +0100
commit51f6e6a9b39c15fcfd34976005fc8496430545e1 (patch)
tree88e384a7699f11be85ace097f5607fc36f1f45ea /src/node_object_wrap.h
parent03fe7fb55cd5dad49ffc9ae5d4067ff46bf06c95 (diff)
downloadandroid-node-v8-51f6e6a9b39c15fcfd34976005fc8496430545e1.tar.gz
android-node-v8-51f6e6a9b39c15fcfd34976005fc8496430545e1.tar.bz2
android-node-v8-51f6e6a9b39c15fcfd34976005fc8496430545e1.zip
src, test: downgrade to v8 3.14 api
Diffstat (limited to 'src/node_object_wrap.h')
-rw-r--r--src/node_object_wrap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h
index ee08057a21..c7fa3eb9ba 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();
}