Skip to content

Commit

Permalink
fixed #171 NanMakeWeakPersistent should use the callback as handle (o…
Browse files Browse the repository at this point in the history
…nmessage event with arraybuffer)
  • Loading branch information
guymguym committed Apr 2, 2015
1 parent eab669b commit ce1b147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datachannel.cc
Expand Up @@ -192,7 +192,7 @@ void DataChannel::Run(uv_async_t* handle, int status)
data->message, v8::kExternalByteArray, data->size);
array->ForceSet(NanNew("byteLength"), NanNew<v8::Integer>(static_cast<uint32_t>(data->size)));
#endif
NanMakeWeakPersistent(array, data, &MessageWeakCallback);
NanMakeWeakPersistent(callback, data, &MessageWeakCallback);

argv[0] = array;
NanMakeCallback(dc, callback, 1, argv);
Expand Down

0 comments on commit ce1b147

Please sign in to comment.