diff options
author | Michaƫl Zasso <mic.besace@gmail.com> | 2015-07-18 12:34:16 +0300 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-09-06 14:38:05 +0300 |
commit | 4abc896a826c892c0d124989cc4ea6f490328942 (patch) | |
tree | b201398a2fd9ea783ef5a8c9bf0ca9299f2451c4 /src/node_object_wrap.h | |
parent | 9a03ae63566f761539bd3a18f0b08c34c4ba0e13 (diff) |
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/node_object_wrap.h')
-rw-r--r-- | src/node_object_wrap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index f0226622272..2d67bc1db67 100644 --- a/src/node_object_wrap.h +++ b/src/node_object_wrap.h @@ -24,7 +24,7 @@ class ObjectWrap { template <class T> - static inline T* Unwrap(v8::Handle<v8::Object> handle) { + static inline T* Unwrap(v8::Local<v8::Object> handle) { assert(!handle.IsEmpty()); assert(handle->InternalFieldCount() > 0); // Cast to ObjectWrap before casting to T. A direct cast from void @@ -51,7 +51,7 @@ class ObjectWrap { protected: - inline void Wrap(v8::Handle<v8::Object> handle) { + inline void Wrap(v8::Local<v8::Object> handle) { assert(persistent().IsEmpty()); assert(handle->InternalFieldCount() > 0); handle->SetAlignedPointerInInternalField(0, this); |