summaryrefslogtreecommitdiff
path: root/src/fs_event_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs_event_wrap.cc')
-rw-r--r--src/fs_event_wrap.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc
index e17f9ce58e..0d0096cab7 100644
--- a/src/fs_event_wrap.cc
+++ b/src/fs_event_wrap.cc
@@ -14,7 +14,6 @@ namespace node {
using v8::Context;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
-using v8::Handle;
using v8::HandleScope;
using v8::Integer;
using v8::Local;
@@ -24,9 +23,9 @@ using v8::Value;
class FSEventWrap: public HandleWrap {
public:
- static void Initialize(Handle<Object> target,
- Handle<Value> unused,
- Handle<Context> context);
+ static void Initialize(Local<Object> target,
+ Local<Value> unused,
+ Local<Context> context);
static void New(const FunctionCallbackInfo<Value>& args);
static void Start(const FunctionCallbackInfo<Value>& args);
static void Close(const FunctionCallbackInfo<Value>& args);
@@ -34,7 +33,7 @@ class FSEventWrap: public HandleWrap {
size_t self_size() const override { return sizeof(*this); }
private:
- FSEventWrap(Environment* env, Handle<Object> object);
+ FSEventWrap(Environment* env, Local<Object> object);
virtual ~FSEventWrap() override;
static void OnEvent(uv_fs_event_t* handle, const char* filename, int events,
@@ -45,7 +44,7 @@ class FSEventWrap: public HandleWrap {
};
-FSEventWrap::FSEventWrap(Environment* env, Handle<Object> object)
+FSEventWrap::FSEventWrap(Environment* env, Local<Object> object)
: HandleWrap(env,
object,
reinterpret_cast<uv_handle_t*>(&handle_),
@@ -59,9 +58,9 @@ FSEventWrap::~FSEventWrap() {
}
-void FSEventWrap::Initialize(Handle<Object> target,
- Handle<Value> unused,
- Handle<Context> context) {
+void FSEventWrap::Initialize(Local<Object> target,
+ Local<Value> unused,
+ Local<Context> context) {
Environment* env = Environment::GetCurrent(context);
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);