aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/ext/call.cc
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-03-04 14:42:31 -0800
committerGravatar murgatroid99 <mlumish@google.com>2015-03-04 14:42:31 -0800
commitf28066b930da85561c6a1409539ea88ef44e3f79 (patch)
tree328039b9dbb7ed8af0c3e569b0a44ec8e6dba1f5 /src/node/ext/call.cc
parent5f875d29869de606432531ecdd630bc5aa6f9574 (diff)
The library now compiles with Node 0.11+ and all versions of io.js
Diffstat (limited to 'src/node/ext/call.cc')
-rw-r--r--src/node/ext/call.cc8
1 files changed, 4 insertions, 4 deletions
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<Object> metadata, grpc_metadata_array *array,
if (::node::Buffer::HasInstance(value)) {
current->value = ::node::Buffer::Data(value);
current->value_length = ::node::Buffer::Length(value);
- Persistent<Value> handle;
- NanAssignPersistent(handle, value);
+ Persistent<Value> *handle = new Persistent<Value>();
+ NanAssignPersistent(*handle, value);
resources->handles.push_back(unique_ptr<PersistentHolder>(
new PersistentHolder(handle)));
} else if (value->IsString()) {
@@ -196,8 +196,8 @@ class SendMessageOp : public Op {
return false;
}
out->data.send_message = BufferToByteBuffer(value);
- Persistent<Value> handle;
- NanAssignPersistent(handle, value);
+ Persistent<Value> *handle = new Persistent<Value>();
+ NanAssignPersistent(*handle, value);
resources->handles.push_back(unique_ptr<PersistentHolder>(
new PersistentHolder(handle)));
return true;