From f4c77f9118327da5cbd29656a93f08de7ea5b74a Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Wed, 17 Apr 2019 23:35:09 +0800 Subject: [PATCH] src: refactor deprecated UVException in node_file.cc PR-URL: https://github.com/nodejs/node/pull/27280 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig --- src/node_file.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_file.cc b/src/node_file.cc index 85691a4ed12258..36463c9e6f0efa 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -607,8 +607,8 @@ void AfterScanDir(uv_fs_t* req) { if (r == UV_EOF) break; if (r != 0) { - return req_wrap->Reject( - UVException(r, nullptr, req_wrap->syscall(), req->path)); + return req_wrap->Reject(UVException( + env->isolate(), r, nullptr, req_wrap->syscall(), req->path)); } MaybeLocal filename = @@ -649,7 +649,7 @@ void AfterScanDirWithTypes(uv_fs_t* req) { break; if (r != 0) { return req_wrap->Reject( - UVException(r, nullptr, req_wrap->syscall(), req->path)); + UVException(isolate, r, nullptr, req_wrap->syscall(), req->path)); } MaybeLocal filename =