From f28066b930da85561c6a1409539ea88ef44e3f79 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Wed, 4 Mar 2015 14:42:31 -0800 Subject: The library now compiles with Node 0.11+ and all versions of io.js --- src/node/ext/call.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/node/ext/call.cc') diff --git a/src/node/ext/call.cc b/src/node/ext/call.cc index 1d85abb1d2..afb6541783 100644 --- a/src/node/ext/call.cc +++ b/src/node/ext/call.cc @@ -102,8 +102,8 @@ bool CreateMetadataArray(Handle metadata, grpc_metadata_array *array, if (::node::Buffer::HasInstance(value)) { current->value = ::node::Buffer::Data(value); current->value_length = ::node::Buffer::Length(value); - Persistent handle; - NanAssignPersistent(handle, value); + Persistent *handle = new Persistent(); + NanAssignPersistent(*handle, value); resources->handles.push_back(unique_ptr( new PersistentHolder(handle))); } else if (value->IsString()) { @@ -196,8 +196,8 @@ class SendMessageOp : public Op { return false; } out->data.send_message = BufferToByteBuffer(value); - Persistent handle; - NanAssignPersistent(handle, value); + Persistent *handle = new Persistent(); + NanAssignPersistent(*handle, value); resources->handles.push_back(unique_ptr( new PersistentHolder(handle))); return true; -- cgit v1.2.3