Lines Matching refs:args
74 static void New(const FunctionCallbackInfo<Value>& args) {
78 CHECK(args.IsConstructCall());
79 Environment* env = Environment::GetCurrent(args);
80 new ProcessWrap(env, args.This());
145 static void Spawn(const FunctionCallbackInfo<Value>& args) {
146 Environment* env = Environment::GetCurrent(args);
149 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
152 args[0]->ToObject(env->context()).ToLocalChecked();
188 // options.args
197 options.args = new char*[argc + 1];
201 options.args[i] = strdup(*arg);
202 CHECK_NOT_NULL(options.args[i]);
204 options.args[argc] = nullptr;
275 if (options.args) {
276 for (int i = 0; options.args[i]; i++) free(options.args[i]);
277 delete [] options.args;
287 args.GetReturnValue().Set(err);
290 static void Kill(const FunctionCallbackInfo<Value>& args) {
291 Environment* env = Environment::GetCurrent(args);
293 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
294 int signal = args[0]->Int32Value(env->context()).FromJust();
296 args.GetReturnValue().Set(err);