summaryrefslogtreecommitdiff
path: root/src/node_os.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/node_os.cc
parent9a03ae63566f761539bd3a18f0b08c34c4ba0e13 (diff)
downloadnode-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/node_os.cc')
-rw-r--r--src/node_os.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/node_os.cc b/src/node_os.cc
index 3abc7ccec1..a100090748 100644
--- a/src/node_os.cc
+++ b/src/node_os.cc
@@ -30,7 +30,6 @@ using v8::Array;
using v8::Boolean;
using v8::Context;
using v8::FunctionCallbackInfo;
-using v8::Handle;
using v8::Integer;
using v8::Local;
using v8::Number;
@@ -291,9 +290,9 @@ static void GetHomeDirectory(const FunctionCallbackInfo<Value>& args) {
}
-void Initialize(Handle<Object> target,
- Handle<Value> unused,
- Handle<Context> context) {
+void Initialize(Local<Object> target,
+ Local<Value> unused,
+ Local<Context> context) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(target, "getHostname", GetHostname);
env->SetMethod(target, "getLoadAvg", GetLoadAvg);