diff --git a/src/win/pty.cc b/src/win/pty.cc index a0f016f..4ab7b4b 100644 --- a/src/win/pty.cc +++ b/src/win/pty.cc @@ -256,6 +256,7 @@ static NAN_METHOD(PtyStartProcess) { std::string conoutPipeNameStr(conoutPipeNameWStr.begin(), conoutPipeNameWStr.end()); marshal->Set(Nan::New("conout").ToLocalChecked(), Nan::New(conoutPipeNameStr).ToLocalChecked()); } + info.GetReturnValue().Set(marshal); goto cleanup; @@ -263,8 +264,6 @@ static NAN_METHOD(PtyStartProcess) { delete filename; delete cmdline; delete cwd; - - info.GetReturnValue().Set(marshal); } /*