src: refactor deprecated UVException in node_file.cc
PR-URL: https://github.com/nodejs/node/pull/27280 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
66cf4b5d6e
commit
f4c77f9118
@ -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<Value> 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<Value> filename =
|
||||
|
Loading…
x
Reference in New Issue
Block a user