Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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/pipe_wrap.cc
parent7b4d95a976f1b76e6dcefb6ca91dff738c80ab7a (diff)
bindings: update to new v8 apis
GetPointerFromInternalField() is deprecated now, we should use GetAlignedPointerFromInternalField().
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index 39b21a6fab2..0c60b4af4e5 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -68,7 +68,7 @@ Local<Object> PipeWrap::Instantiate() {
PipeWrap* PipeWrap::Unwrap(Local<Object> obj) {
assert(!obj.IsEmpty());
assert(obj->InternalFieldCount() > 0);
- return static_cast<PipeWrap*>(obj->GetPointerFromInternalField(0));
+ return static_cast<PipeWrap*>(obj->GetAlignedPointerFromInternalField(0));
}
@@ -204,7 +204,7 @@ void PipeWrap::OnConnection(uv_stream_t* handle, int status) {
// Unwrap the client javascript object.
assert(client_obj->InternalFieldCount() > 0);
PipeWrap* client_wrap =
- static_cast<PipeWrap*>(client_obj->GetPointerFromInternalField(0));
+ static_cast<PipeWrap*>(client_obj->GetAlignedPointerFromInternalField(0));
if (uv_accept(handle, (uv_stream_t*)&client_wrap->handle_)) return;