Lines Matching defs:args
57 static void New(const FunctionCallbackInfo<Value>& args);
58 static void Start(const FunctionCallbackInfo<Value>& args);
59 static void GetInitialized(const FunctionCallbackInfo<Value>& args);
88 void FSEventWrap::GetInitialized(const FunctionCallbackInfo<Value>& args) {
89 FSEventWrap* wrap = Unwrap<FSEventWrap>(args.This());
91 args.GetReturnValue().Set(!wrap->IsHandleClosing());
130 void FSEventWrap::New(const FunctionCallbackInfo<Value>& args) {
131 CHECK(args.IsConstructCall());
132 Environment* env = Environment::GetCurrent(args);
133 new FSEventWrap(env, args.This());
137 void FSEventWrap::Start(const FunctionCallbackInfo<Value>& args) {
138 Environment* env = Environment::GetCurrent(args);
140 FSEventWrap* wrap = Unwrap<FSEventWrap>(args.This());
144 const int argc = args.Length();
147 BufferValue path(env->isolate(), args[0]);
151 if (args[2]->IsTrue())
154 wrap->encoding_ = ParseEncoding(env->isolate(), args[3], kDefaultEncoding);
158 return args.GetReturnValue().Set(err);
165 FSEventWrap::Close(args);
166 return args.GetReturnValue().Set(err);
170 if (!args[1]->IsTrue()) {
174 args.GetReturnValue().Set(err);