We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e5875 commit 530acd1Copy full SHA for 530acd1
src/pipe_wrap.cc
@@ -40,7 +40,6 @@ using v8::Function;
40
using v8::FunctionCallbackInfo;
41
using v8::FunctionTemplate;
42
using v8::Int32;
43
-using v8::Isolate;
44
using v8::Local;
45
using v8::MaybeLocal;
46
using v8::Object;
@@ -216,9 +215,8 @@ void PipeWrap::Open(const FunctionCallbackInfo<Value>& args) {
216
215
int err = uv_pipe_open(&wrap->handle_, fd);
217
wrap->set_fd(fd);
218
219
- Isolate* isolate = env->isolate();
220
if (err != 0)
221
- isolate->ThrowException(UVException(isolate, err, "uv_pipe_open"));
+ env->ThrowUVException(err, "uv_pipe_open");
222
}
223
224
0 commit comments