@@ -14,7 +14,6 @@ namespace node {
14
14
using v8::Context;
15
15
using v8::FunctionCallbackInfo;
16
16
using v8::FunctionTemplate;
17
- using v8::Handle ;
18
17
using v8::HandleScope;
19
18
using v8::Integer;
20
19
using v8::Local;
@@ -24,17 +23,17 @@ using v8::Value;
24
23
25
24
class FSEventWrap : public HandleWrap {
26
25
public:
27
- static void Initialize (Handle <Object> target,
28
- Handle <Value> unused,
29
- Handle <Context> context);
26
+ static void Initialize (Local <Object> target,
27
+ Local <Value> unused,
28
+ Local <Context> context);
30
29
static void New (const FunctionCallbackInfo<Value>& args);
31
30
static void Start (const FunctionCallbackInfo<Value>& args);
32
31
static void Close (const FunctionCallbackInfo<Value>& args);
33
32
34
33
size_t self_size () const override { return sizeof (*this ); }
35
34
36
35
private:
37
- FSEventWrap (Environment* env, Handle <Object> object);
36
+ FSEventWrap (Environment* env, Local <Object> object);
38
37
virtual ~FSEventWrap () override ;
39
38
40
39
static void OnEvent (uv_fs_event_t * handle, const char * filename, int events,
@@ -45,7 +44,7 @@ class FSEventWrap: public HandleWrap {
45
44
};
46
45
47
46
48
- FSEventWrap::FSEventWrap (Environment* env, Handle <Object> object)
47
+ FSEventWrap::FSEventWrap (Environment* env, Local <Object> object)
49
48
: HandleWrap(env,
50
49
object,
51
50
reinterpret_cast <uv_handle_t *>(&handle_),
@@ -59,9 +58,9 @@ FSEventWrap::~FSEventWrap() {
59
58
}
60
59
61
60
62
- void FSEventWrap::Initialize (Handle <Object> target,
63
- Handle <Value> unused,
64
- Handle <Context> context) {
61
+ void FSEventWrap::Initialize (Local <Object> target,
62
+ Local <Value> unused,
63
+ Local <Context> context) {
65
64
Environment* env = Environment::GetCurrent (context);
66
65
67
66
Local<FunctionTemplate> t = env->NewFunctionTemplate (New);
0 commit comments