aboutsummaryrefslogtreecommitdiff
path: root/src/stream_wrap.cc
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2013-01-01 16:05:53 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2013-01-02 12:13:46 +0400
commit5e57bcc3cee41a666f05e5e4ffd1b76e18b66282 (patch)
tree40272f5a03eb79530dd5c0210a99d22bdddf1ccd /src/stream_wrap.cc
parent7b4d95a976f1b76e6dcefb6ca91dff738c80ab7a (diff)
downloadandroid-node-v8-5e57bcc3cee41a666f05e5e4ffd1b76e18b66282.tar.gz
android-node-v8-5e57bcc3cee41a666f05e5e4ffd1b76e18b66282.tar.bz2
android-node-v8-5e57bcc3cee41a666f05e5e4ffd1b76e18b66282.zip
bindings: update to new v8 apis
GetPointerFromInternalField() is deprecated now, we should use GetAlignedPointerFromInternalField().
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r--src/stream_wrap.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index 825b65aa99..8229db22a2 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -220,8 +220,8 @@ void StreamWrap::OnReadCommon(uv_stream_t* handle, ssize_t nread,
if (!pending_obj.IsEmpty()) {
assert(pending_obj->InternalFieldCount() > 0);
- StreamWrap* pending_wrap =
- static_cast<StreamWrap*>(pending_obj->GetPointerFromInternalField(0));
+ StreamWrap* pending_wrap = static_cast<StreamWrap*>(
+ pending_obj->GetAlignedPointerFromInternalField(0));
if (uv_accept(handle, pending_wrap->GetStream())) abort();
argv[3] = pending_obj;
argc++;
@@ -408,7 +408,7 @@ Handle<Value> StreamWrap::WriteStringImpl(const Arguments& args) {
Local<Object> send_stream_obj = args[1]->ToObject();
assert(send_stream_obj->InternalFieldCount() > 0);
StreamWrap* send_stream_wrap = static_cast<StreamWrap*>(
- send_stream_obj->GetPointerFromInternalField(0));
+ send_stream_obj->GetAlignedPointerFromInternalField(0));
send_stream = send_stream_wrap->GetStream();
}