Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2015-07-18 12:34:16 +0300
committerRod Vagg <rod@vagg.org>2015-09-06 14:38:05 +0300
commit4abc896a826c892c0d124989cc4ea6f490328942 (patch)
treeb201398a2fd9ea783ef5a8c9bf0ca9299f2451c4 /src/node_constants.cc
parent9a03ae63566f761539bd3a18f0b08c34c4ba0e13 (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_constants.cc')
-rw-r--r--src/node_constants.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc
index 59dd11113eb..51c2ee814ae 100644
--- a/src/node_constants.cc
+++ b/src/node_constants.cc
@@ -21,14 +21,14 @@
namespace node {
-using v8::Handle;
+using v8::Local;
using v8::Object;
#if HAVE_OPENSSL
const char* default_cipher_list = DEFAULT_CIPHER_LIST_CORE;
#endif
-void DefineErrnoConstants(Handle<Object> target) {
+void DefineErrnoConstants(Local<Object> target) {
#ifdef E2BIG
NODE_DEFINE_CONSTANT(target, E2BIG);
#endif
@@ -346,7 +346,7 @@ void DefineErrnoConstants(Handle<Object> target) {
#endif
}
-void DefineWindowsErrorConstants(Handle<Object> target) {
+void DefineWindowsErrorConstants(Local<Object> target) {
#ifdef WSAEINTR
NODE_DEFINE_CONSTANT(target, WSAEINTR);
#endif
@@ -580,7 +580,7 @@ void DefineWindowsErrorConstants(Handle<Object> target) {
#endif
}
-void DefineSignalConstants(Handle<Object> target) {
+void DefineSignalConstants(Local<Object> target) {
#ifdef SIGHUP
NODE_DEFINE_CONSTANT(target, SIGHUP);
#endif
@@ -725,7 +725,7 @@ void DefineSignalConstants(Handle<Object> target) {
#endif
}
-void DefineOpenSSLConstants(Handle<Object> target) {
+void DefineOpenSSLConstants(Local<Object> target) {
#ifdef SSL_OP_ALL
NODE_DEFINE_CONSTANT(target, SSL_OP_ALL);
#endif
@@ -969,7 +969,7 @@ void DefineOpenSSLConstants(Handle<Object> target) {
#endif
}
-void DefineSystemConstants(Handle<Object> target) {
+void DefineSystemConstants(Local<Object> target) {
// file access modes
NODE_DEFINE_CONSTANT(target, O_RDONLY);
NODE_DEFINE_CONSTANT(target, O_WRONLY);
@@ -1108,11 +1108,11 @@ void DefineSystemConstants(Handle<Object> target) {
#endif
}
-void DefineUVConstants(Handle<Object> target) {
+void DefineUVConstants(Local<Object> target) {
NODE_DEFINE_CONSTANT(target, UV_UDP_REUSEADDR);
}
-void DefineCryptoConstants(Handle<Object> target) {
+void DefineCryptoConstants(Local<Object> target) {
#if HAVE_OPENSSL
NODE_DEFINE_STRING_CONSTANT(target,
"defaultCoreCipherList",
@@ -1123,7 +1123,7 @@ void DefineCryptoConstants(Handle<Object> target) {
#endif
}
-void DefineConstants(Handle<Object> target) {
+void DefineConstants(Local<Object> target) {
DefineErrnoConstants(target);
DefineWindowsErrorConstants(target);
DefineSignalConstants(target);