Skip to content

Commit

Permalink
src: refactor deprecated UVException in node_file.cc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gengjiawen authored and ZYSzys committed Apr 27, 2019
1 parent 66cf4b5 commit f4c77f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit f4c77f9

Please sign in to comment.