summaryrefslogtreecommitdiff
path: root/src/async-wrap.cc
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2015-07-18 11:34:16 +0200
committerRod Vagg <rod@vagg.org>2015-09-06 21:38:05 +1000
commit4abc896a826c892c0d124989cc4ea6f490328942 (patch)
treeb201398a2fd9ea783ef5a8c9bf0ca9299f2451c4 /src/async-wrap.cc
parent9a03ae63566f761539bd3a18f0b08c34c4ba0e13 (diff)
downloadandroid-node-v8-4abc896a826c892c0d124989cc4ea6f490328942.tar.gz
android-node-v8-4abc896a826c892c0d124989cc4ea6f490328942.tar.bz2
android-node-v8-4abc896a826c892c0d124989cc4ea6f490328942.zip
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/async-wrap.cc')
-rw-r--r--src/async-wrap.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/async-wrap.cc b/src/async-wrap.cc
index 43a647b6d7..37de0588b2 100644
--- a/src/async-wrap.cc
+++ b/src/async-wrap.cc
@@ -12,7 +12,6 @@ using v8::Array;
using v8::Context;
using v8::Function;
using v8::FunctionCallbackInfo;
-using v8::Handle;
using v8::HandleScope;
using v8::HeapProfiler;
using v8::Integer;
@@ -83,7 +82,7 @@ intptr_t RetainedAsyncInfo::GetSizeInBytes() {
}
-RetainedObjectInfo* WrapperInfo(uint16_t class_id, Handle<Value> wrapper) {
+RetainedObjectInfo* WrapperInfo(uint16_t class_id, Local<Value> wrapper) {
// No class_id should be the provider type of NONE.
CHECK_NE(NODE_ASYNC_ID_OFFSET, class_id);
CHECK(wrapper->IsObject());
@@ -129,9 +128,9 @@ static void SetupHooks(const FunctionCallbackInfo<Value>& args) {
}
-static void Initialize(Handle<Object> target,
- Handle<Value> unused,
- Handle<Context> context) {
+static void Initialize(Local<Object> target,
+ Local<Value> unused,
+ Local<Context> context) {
Environment* env = Environment::GetCurrent(context);
Isolate* isolate = env->isolate();
HandleScope scope(isolate);
@@ -160,9 +159,9 @@ void LoadAsyncWrapperInfo(Environment* env) {
}
-Handle<Value> AsyncWrap::MakeCallback(const Handle<Function> cb,
+Local<Value> AsyncWrap::MakeCallback(const Local<Function> cb,
int argc,
- Handle<Value>* argv) {
+ Local<Value>* argv) {
CHECK(env()->context() == env()->isolate()->GetCurrentContext());
Local<Object> context = object();