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)
|
if (r == UV_EOF)
|
||||||
break;
|
break;
|
||||||
if (r != 0) {
|
if (r != 0) {
|
||||||
return req_wrap->Reject(
|
return req_wrap->Reject(UVException(
|
||||||
UVException(r, nullptr, req_wrap->syscall(), req->path));
|
env->isolate(), r, nullptr, req_wrap->syscall(), req->path));
|
||||||
}
|
}
|
||||||
|
|
||||||
MaybeLocal<Value> filename =
|
MaybeLocal<Value> filename =
|
||||||
@ -649,7 +649,7 @@ void AfterScanDirWithTypes(uv_fs_t* req) {
|
|||||||
break;
|
break;
|
||||||
if (r != 0) {
|
if (r != 0) {
|
||||||
return req_wrap->Reject(
|
return req_wrap->Reject(
|
||||||
UVException(r, nullptr, req_wrap->syscall(), req->path));
|
UVException(isolate, r, nullptr, req_wrap->syscall(), req->path));
|
||||||
}
|
}
|
||||||
|
|
||||||
MaybeLocal<Value> filename =
|
MaybeLocal<Value> filename =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user