Lines Matching defs:args
79 static void New(const FunctionCallbackInfo<Value>& args) {
83 CHECK(args.IsConstructCall());
84 Environment* env = Environment::GetCurrent(args);
85 new SignalWrap(env, args.This());
105 static void Start(const FunctionCallbackInfo<Value>& args) {
107 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
110 if (!args[0]->Int32Value(env->context()).To(&signum)) return;
113 Environment* env = Environment::GetCurrent(args);
140 args.GetReturnValue().Set(err);
143 static void Stop(const FunctionCallbackInfo<Value>& args) {
145 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
153 args.GetReturnValue().Set(err);