Home | History | Annotate | Download | only in src

Lines Matching refs:New

184 // array of new[]ed UTF-8 C strings.  Deallocates them again when it goes out of
196 ThrowException(String::New(message));
200 char* c_arg = new char[len];
205 Handle<Value> arg(command_args->Get(Integer::New(j)));
211 ThrowException(String::New(message));
215 char* c_arg = new char[len];
247 ThrowException(String::New("system: Argument 4 must be a number"));
255 ThrowException(String::New("system: Argument 3 must be a number"));
300 ThrowException(String::New(strerror(err)));
315 Handle<Value> cons_as_obj(Script::Compile(String::New(source))->Run());
324 return ThrowException(String::New(strerror(errno)));
339 return ThrowException(String::New("Timed out waiting for output"));
352 Handle<String> addition = String::New(buffer, length);
402 ThrowException(String::New("Timed out waiting for process to terminate"));
413 ThrowException(String::New(message));
422 ThrowException(String::New(message));
437 ThrowException(String::New(message));
447 ThrowException(String::New(message));
466 return ThrowException(String::New("system: Argument 2 must be an array"));
470 command_args = Array::New(0);
473 return ThrowException(String::New("Too many arguments to system()"));
476 return ThrowException(String::New("Too few arguments to system()"));
490 return ThrowException(String::New("pipe syscall failed."));
493 return ThrowException(String::New("pipe syscall failed."));
535 return ThrowException(String::New(message));
540 return ThrowException(String::New(message));
543 return ThrowException(String::New(strerror(errno)));
552 return ThrowException(String::New(message));
557 return Number::New(previous);
560 return ThrowException(String::New(message));
569 ThrowException(String::New(strerror(errno)));
573 ThrowException(String::New(strerror(EEXIST)));
588 ThrowException(String::New(strerror(errno)));
599 ThrowException(String::New(strerror(errno)));
602 ThrowException(String::New(strerror(errno)));
615 return ThrowException(String::New(message));
619 return ThrowException(String::New(message));
624 return ThrowException(String::New(message));
634 return ThrowException(String::New(message));
639 return ThrowException(String::New(message));
649 return ThrowException(String::New(message));
656 return ThrowException(String::New(message));
661 return ThrowException(String::New(message));
671 return ThrowException(String::New(message));
677 return ThrowException(String::New(message));
685 os_templ->Set(String::New("system"), FunctionTemplate::New(System));
686 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory));
687 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment));
688 os_templ->Set(String::New("unsetenv"),
689 FunctionTemplate::New(UnsetEnvironment));
690 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask));
691 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory));
692 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory));