diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-13 20:38:14 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-13 20:56:55 +0400 |
commit | ce04c726a31cd13be131915b1c8b8bc7a00a4d24 (patch) | |
tree | b309f6f42362231f54825586b9d79bd6163bb985 /src/udp_wrap.cc | |
parent | 1c7bf245dc2d520c005e01bcb56ecb3275971395 (diff) | |
download | node-new-ce04c726a31cd13be131915b1c8b8bc7a00a4d24.tar.gz |
src: update to v8 3.24 APIs
Diffstat (limited to 'src/udp_wrap.cc')
-rw-r--r-- | src/udp_wrap.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc index 36ce93d63b..01ec324eb6 100644 --- a/src/udp_wrap.cc +++ b/src/udp_wrap.cc @@ -91,7 +91,7 @@ void UDPWrap::Initialize(Handle<Object> target, Handle<Context> context) { Environment* env = Environment::GetCurrent(context); - Local<FunctionTemplate> t = FunctionTemplate::New(New); + Local<FunctionTemplate> t = FunctionTemplate::New(env->isolate(), New); t->InstanceTemplate()->SetInternalFieldCount(1); t->SetClassName(FIXED_ONE_BYTE_STRING(env->isolate(), "UDP")); @@ -371,7 +371,7 @@ void UDPWrap::OnSend(uv_udp_send_t* req, int status) { Environment* env = req_wrap->env(); HandleScope handle_scope(env->isolate()); Context::Scope context_scope(env->context()); - Local<Value> arg = Integer::New(status, env->isolate()); + Local<Value> arg = Integer::New(env->isolate(), status); req_wrap->MakeCallback(env->oncomplete_string(), 1, &arg); } delete req_wrap; @@ -410,7 +410,7 @@ void UDPWrap::OnRecv(uv_udp_t* handle, Local<Object> wrap_obj = wrap->object(); Local<Value> argv[] = { - Integer::New(nread, env->isolate()), + Integer::New(env->isolate(), nread), wrap_obj, Undefined(env->isolate()), Undefined(env->isolate()) |