We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66cf89f commit 62fe342Copy full SHA for 62fe342
src/pipe_wrap.cc
@@ -41,6 +41,7 @@ using v8::FunctionCallbackInfo;
41
using v8::FunctionTemplate;
42
using v8::HandleScope;
43
using v8::Int32;
44
+using v8::Isolate;
45
using v8::Local;
46
using v8::MaybeLocal;
47
using v8::Object;
@@ -216,8 +217,9 @@ void PipeWrap::Open(const FunctionCallbackInfo<Value>& args) {
216
217
int err = uv_pipe_open(&wrap->handle_, fd);
218
wrap->set_fd(fd);
219
220
+ Isolate* isolate = env->isolate();
221
if (err != 0)
- env->isolate()->ThrowException(UVException(err, "uv_pipe_open"));
222
+ isolate->ThrowException(UVException(isolate, err, "uv_pipe_open"));
223
}
224
225
0 commit comments