diff options
author | Michaƫl Zasso <mic.besace@gmail.com> | 2015-07-18 11:34:16 +0200 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-09-06 21:38:05 +1000 |
commit | 4abc896a826c892c0d124989cc4ea6f490328942 (patch) | |
tree | b201398a2fd9ea783ef5a8c9bf0ca9299f2451c4 /src/tcp_wrap.cc | |
parent | 9a03ae63566f761539bd3a18f0b08c34c4ba0e13 (diff) | |
download | node-new-4abc896a826c892c0d124989cc4ea6f490328942.tar.gz |
src: replace usage of v8::Handle with v8::Local
v8::Handle is deprecated: https://codereview.chromium.org/1224623004
PR-URL: https://github.com/nodejs/io.js/pull/2202
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/tcp_wrap.cc')
-rw-r--r-- | src/tcp_wrap.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc index d9a35886cb..9bdf8ccc1d 100644 --- a/src/tcp_wrap.cc +++ b/src/tcp_wrap.cc @@ -23,7 +23,6 @@ using v8::External; using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; -using v8::Handle; using v8::HandleScope; using v8::Integer; using v8::Local; @@ -64,9 +63,9 @@ Local<Object> TCPWrap::Instantiate(Environment* env, AsyncWrap* parent) { } -void TCPWrap::Initialize(Handle<Object> target, - Handle<Value> unused, - Handle<Context> context) { +void TCPWrap::Initialize(Local<Object> target, + Local<Value> unused, + Local<Context> context) { Environment* env = Environment::GetCurrent(context); Local<FunctionTemplate> t = env->NewFunctionTemplate(New); @@ -146,7 +145,7 @@ void TCPWrap::New(const FunctionCallbackInfo<Value>& args) { } -TCPWrap::TCPWrap(Environment* env, Handle<Object> object, AsyncWrap* parent) +TCPWrap::TCPWrap(Environment* env, Local<Object> object, AsyncWrap* parent) : StreamWrap(env, object, reinterpret_cast<uv_stream_t*>(&handle_), |