| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -217,10 +217,9 @@ void PipeWrap::Open(const FunctionCallbackInfo<Value>& args) { | |||
| 217 | 217 | if (!args[0]->Int32Value(env->context()).To(&fd)) return; | |
| 218 | 218 | ||
| 219 | 219 | int err = uv_pipe_open(&wrap->handle_, fd); | |
| 220 | - wrap->set_fd(fd); | ||
| 220 | + if (err == 0) wrap->set_fd(fd); | ||
| 221 | 221 | ||
| 222 | - if (err != 0) | ||
| 223 | - env->ThrowUVException(err, "uv_pipe_open"); | ||
| 222 | + args.GetReturnValue().Set(err); | ||
| 224 | 223 | } | |
| 225 | 224 | ||
| 226 | 225 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments