From ade27b732ba8f5687d8da053a573c3ba93a5bd9b Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sat, 3 Oct 2020 18:09:00 -0700 Subject: [PATCH] src: use env->ThrowUVException in pipe_wrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: James M Snell PR-URL: https://github.com/nodejs/node/pull/35493 Reviewed-By: Daijiro Wachi Reviewed-By: Tobias Nießen Reviewed-By: David Carlier Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott --- src/pipe_wrap.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index 9e6831b2ed3b04..1396395463dfed 100644 --- a/src/pipe_wrap.cc +++ b/src/pipe_wrap.cc @@ -40,7 +40,6 @@ using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::Int32; -using v8::Isolate; using v8::Local; using v8::MaybeLocal; using v8::Object; @@ -216,9 +215,8 @@ void PipeWrap::Open(const FunctionCallbackInfo& args) { int err = uv_pipe_open(&wrap->handle_, fd); wrap->set_fd(fd); - Isolate* isolate = env->isolate(); if (err != 0) - isolate->ThrowException(UVException(isolate, err, "uv_pipe_open")); + env->ThrowUVException(err, "uv_pipe_open"); }