Lines Matching refs:GetIsolate
229 args.GetIsolate()->ThrowException(String::NewFromUtf8( in GetTimeouts()
230 args.GetIsolate(), "system: Argument 4 must be a number")); in GetTimeouts()
238 args.GetIsolate()->ThrowException(String::NewFromUtf8( in GetTimeouts()
239 args.GetIsolate(), "system: Argument 3 must be a number")); in GetTimeouts()
441 HandleScope scope(args.GetIsolate()); in System()
448 args.GetIsolate()->ThrowException(String::NewFromUtf8( in System()
449 args.GetIsolate(), "system: Argument 2 must be an array")); in System()
454 command_args = Array::New(args.GetIsolate(), 0); in System()
457 args.GetIsolate()->ThrowException(String::NewFromUtf8( in System()
458 args.GetIsolate(), "Too many arguments to system()")); in System()
462 args.GetIsolate()->ThrowException(String::NewFromUtf8( in System()
463 args.GetIsolate(), "Too few arguments to system()")); in System()
471 if (!exec_args.Init(args.GetIsolate(), args[0], command_args)) { in System()
478 args.GetIsolate()->ThrowException( in System()
479 String::NewFromUtf8(args.GetIsolate(), "pipe syscall failed.")); in System()
483 args.GetIsolate()->ThrowException( in System()
484 String::NewFromUtf8(args.GetIsolate(), "pipe syscall failed.")); in System()
501 if (!ChildLaunchedOK(args.GetIsolate(), exec_error_fds)) return; in System()
503 Handle<Value> accumulator = GetStdout(args.GetIsolate(), in System()
514 if (!WaitForChild(args.GetIsolate(), in System()
530 args.GetIsolate()->ThrowException( in ChangeDirectory()
531 String::NewFromUtf8(args.GetIsolate(), message)); in ChangeDirectory()
537 args.GetIsolate()->ThrowException( in ChangeDirectory()
538 String::NewFromUtf8(args.GetIsolate(), message)); in ChangeDirectory()
542 args.GetIsolate()->ThrowException( in ChangeDirectory()
543 String::NewFromUtf8(args.GetIsolate(), strerror(errno))); in ChangeDirectory()
552 args.GetIsolate()->ThrowException( in SetUMask()
553 String::NewFromUtf8(args.GetIsolate(), message)); in SetUMask()
567 args.GetIsolate()->ThrowException( in SetUMask()
568 String::NewFromUtf8(args.GetIsolate(), message)); in SetUMask()
624 args.GetIsolate()->ThrowException( in MakeDirectory()
625 String::NewFromUtf8(args.GetIsolate(), message)); in MakeDirectory()
630 args.GetIsolate()->ThrowException( in MakeDirectory()
631 String::NewFromUtf8(args.GetIsolate(), message)); in MakeDirectory()
637 args.GetIsolate()->ThrowException( in MakeDirectory()
638 String::NewFromUtf8(args.GetIsolate(), message)); in MakeDirectory()
641 mkdirp(args.GetIsolate(), *directory, mask); in MakeDirectory()
648 args.GetIsolate()->ThrowException( in RemoveDirectory()
649 String::NewFromUtf8(args.GetIsolate(), message)); in RemoveDirectory()
655 args.GetIsolate()->ThrowException( in RemoveDirectory()
656 String::NewFromUtf8(args.GetIsolate(), message)); in RemoveDirectory()
666 args.GetIsolate()->ThrowException( in SetEnvironment()
667 String::NewFromUtf8(args.GetIsolate(), message)); in SetEnvironment()
675 args.GetIsolate()->ThrowException( in SetEnvironment()
676 String::NewFromUtf8(args.GetIsolate(), message)); in SetEnvironment()
682 args.GetIsolate()->ThrowException( in SetEnvironment()
683 String::NewFromUtf8(args.GetIsolate(), message)); in SetEnvironment()
693 args.GetIsolate()->ThrowException( in UnsetEnvironment()
694 String::NewFromUtf8(args.GetIsolate(), message)); in UnsetEnvironment()
701 args.GetIsolate()->ThrowException( in UnsetEnvironment()
702 String::NewFromUtf8(args.GetIsolate(), message)); in UnsetEnvironment()