summaryrefslogtreecommitdiff
path: root/src/udp_wrap.cc
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2015-01-07 14:13:35 -0800
committerTrevor Norris <trev.norris@gmail.com>2015-01-07 14:21:02 -0800
commitcbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26 (patch)
tree5f7d34980bae628553d0ef83b786f8b5166201e4 /src/udp_wrap.cc
parentd55338662329ac37386783ef1aa88f099eff86b2 (diff)
downloadnode-new-cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26.tar.gz
src: pass Isolate to node::Utf8Value constructor
Initial attempt to remove all uses of Isolate::GetCurrent(). Still exists a few locations, but this works out a heavy usage. PR-URL: https://github.com/iojs/io.js/pull/244 Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/udp_wrap.cc')
-rw-r--r--src/udp_wrap.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc
index e58503b40a..155f21a012 100644
--- a/src/udp_wrap.cc
+++ b/src/udp_wrap.cc
@@ -170,7 +170,7 @@ void UDPWrap::DoBind(const FunctionCallbackInfo<Value>& args, int family) {
// bind(ip, port, flags)
CHECK_EQ(args.Length(), 3);
- node::Utf8Value address(args[0]);
+ node::Utf8Value address(args.GetIsolate(), args[0]);
const int port = args[1]->Uint32Value();
const int flags = args[2]->Uint32Value();
char addr[sizeof(sockaddr_in6)];
@@ -231,8 +231,8 @@ void UDPWrap::SetMembership(const FunctionCallbackInfo<Value>& args,
CHECK_EQ(args.Length(), 2);
- node::Utf8Value address(args[0]);
- node::Utf8Value iface(args[1]);
+ node::Utf8Value address(args.GetIsolate(), args[0]);
+ node::Utf8Value iface(args.GetIsolate(), args[1]);
const char* iface_cstr = *iface;
if (args[1]->IsUndefined() || args[1]->IsNull()) {
@@ -276,7 +276,7 @@ void UDPWrap::DoSend(const FunctionCallbackInfo<Value>& args, int family) {
size_t offset = args[2]->Uint32Value();
size_t length = args[3]->Uint32Value();
const unsigned short port = args[4]->Uint32Value();
- node::Utf8Value address(args[5]);
+ node::Utf8Value address(env->isolate(), args[5]);
const bool have_callback = args[6]->IsTrue();
CHECK_LE(length, Buffer::Length(buffer_obj) - offset);