From 5e57bcc3cee41a666f05e5e4ffd1b76e18b66282 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Tue, 1 Jan 2013 16:05:53 +0400 Subject: bindings: update to new v8 apis GetPointerFromInternalField() is deprecated now, we should use GetAlignedPointerFromInternalField(). --- src/pipe_wrap.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pipe_wrap.cc') 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 PipeWrap::Instantiate() { PipeWrap* PipeWrap::Unwrap(Local obj) { assert(!obj.IsEmpty()); assert(obj->InternalFieldCount() > 0); - return static_cast(obj->GetPointerFromInternalField(0)); + return static_cast(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(client_obj->GetPointerFromInternalField(0)); + static_cast(client_obj->GetAlignedPointerFromInternalField(0)); if (uv_accept(handle, (uv_stream_t*)&client_wrap->handle_)) return; -- cgit v1.2.3