summaryrefslogtreecommitdiff
path: root/src/tcp_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/tcp_wrap.cc
parentd55338662329ac37386783ef1aa88f099eff86b2 (diff)
downloadandroid-node-v8-cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26.tar.gz
android-node-v8-cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26.tar.bz2
android-node-v8-cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26.zip
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/tcp_wrap.cc')
-rw-r--r--src/tcp_wrap.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc
index 3b28099043..7d5664510e 100644
--- a/src/tcp_wrap.cc
+++ b/src/tcp_wrap.cc
@@ -279,7 +279,7 @@ void TCPWrap::Open(const FunctionCallbackInfo<Value>& args) {
void TCPWrap::Bind(const FunctionCallbackInfo<Value>& args) {
TCPWrap* wrap = Unwrap<TCPWrap>(args.Holder());
- node::Utf8Value ip_address(args[0]);
+ node::Utf8Value ip_address(args.GetIsolate(), args[0]);
int port = args[1]->Int32Value();
sockaddr_in addr;
int err = uv_ip4_addr(*ip_address, port, &addr);
@@ -294,7 +294,7 @@ void TCPWrap::Bind(const FunctionCallbackInfo<Value>& args) {
void TCPWrap::Bind6(const FunctionCallbackInfo<Value>& args) {
TCPWrap* wrap = Unwrap<TCPWrap>(args.Holder());
- node::Utf8Value ip6_address(args[0]);
+ node::Utf8Value ip6_address(args.GetIsolate(), args[0]);
int port = args[1]->Int32Value();
sockaddr_in6 addr;
int err = uv_ip6_addr(*ip6_address, port, &addr);
@@ -391,7 +391,7 @@ void TCPWrap::Connect(const FunctionCallbackInfo<Value>& args) {
CHECK(args[2]->Uint32Value());
Local<Object> req_wrap_obj = args[0].As<Object>();
- node::Utf8Value ip_address(args[1]);
+ node::Utf8Value ip_address(env->isolate(), args[1]);
int port = args[2]->Uint32Value();
sockaddr_in addr;
@@ -422,7 +422,7 @@ void TCPWrap::Connect6(const FunctionCallbackInfo<Value>& args) {
CHECK(args[2]->Uint32Value());
Local<Object> req_wrap_obj = args[0].As<Object>();
- node::Utf8Value ip_address(args[1]);
+ node::Utf8Value ip_address(env->isolate(), args[1]);
int port = args[2]->Int32Value();
sockaddr_in6 addr;