Skip to content

Commit 3614a00

Browse files
gengjiawentargos
authored andcommitted
src: refactor deprecated UVException in node_file.cc
PR-URL: #27280 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 50732c1 commit 3614a00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node_file.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,8 @@ void AfterScanDir(uv_fs_t* req) {
607607
if (r == UV_EOF)
608608
break;
609609
if (r != 0) {
610-
return req_wrap->Reject(
611-
UVException(r, nullptr, req_wrap->syscall(), req->path));
610+
return req_wrap->Reject(UVException(
611+
env->isolate(), r, nullptr, req_wrap->syscall(), req->path));
612612
}
613613

614614
MaybeLocal<Value> filename =
@@ -649,7 +649,7 @@ void AfterScanDirWithTypes(uv_fs_t* req) {
649649
break;
650650
if (r != 0) {
651651
return req_wrap->Reject(
652-
UVException(r, nullptr, req_wrap->syscall(), req->path));
652+
UVException(isolate, r, nullptr, req_wrap->syscall(), req->path));
653653
}
654654

655655
MaybeLocal<Value> filename =

0 commit comments

Comments
 (0)